From 78267c31301d0865ed2dfef48b77a94840e2c59f Mon Sep 17 00:00:00 2001
From: Volker Schukai <volker.schukai@schukai.com>
Date: Sun, 12 May 2024 20:34:46 +0200
Subject: [PATCH] fix: wip new pipeline

---
 flake.nix | 19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)

diff --git a/flake.nix b/flake.nix
index ddbea61fc..149a8a710 100644
--- a/flake.nix
+++ b/flake.nix
@@ -116,26 +116,13 @@
             #nativeBuildInputs = gitlabPackages;
 
             shellHook = ''
-            
-            
             set -x
             
             ${pkgs'.coreutils}/bin/printenv
 
             
-            if [ -z "''${GITLAB_TOKEN}" ]; then
-            echo "GITLAB_TOKEN"
-           #   exit 1
-            fi
-            
-            if [ -z "''${CI_REPOSITORY_URL}" ]; then
-            echo "CI_REPOSITORY_URL"
-          #    exit 1
-            fi
-            
-            if [ -z "''${CI_PROJECT_DIR}" ]; then
-            echo "CI_PROJECT_DIR"
-           #   exit 1
+            if [ -z "''${CI_JOB_TOKEN}" ]; then
+               exit 1
             fi
             
             cd ''${CI_PROJECT_DIR} || exit 1
@@ -146,7 +133,7 @@
             ${pkgs'.git}/bin/git config --global pull.rebase true
             ${pkgs'.git}/bin/git config --global http.sslVerify "false"
             
-            ${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@}
+            ${pkgs'.git}/bin/git remote set-url origin "''${CI_REPOSITORY_URL}"
             
             ${pkgs'.git}/bin/git fetch --all --tags --unshallow
             ${pkgs'.git}/bin/git reset --hard origin/master
-- 
GitLab