This commit is contained in:
@@ -23,10 +23,10 @@
|
||||
|
||||
# 2. Authenticate if CI environment variables are present
|
||||
if [ -n "''${REGISTRY_USERNAME:-}" ] && [ -n "''${REGISTRY_PASSWORD:-}" ]; then
|
||||
echo "CI Environment detected: Logging in to Harbor."
|
||||
echo "CI Environment detected: Logging in to registry."
|
||||
${pkgs.skopeo}/bin/skopeo login gitlab.julian-mutter.de \
|
||||
--username "''${HARBOR_USERNAME}" \
|
||||
--password "''${HARBOR_PASSWORD}"
|
||||
--username "''${REGISTRY_USERNAME}" \
|
||||
--password "''${REGISTRY_PASSWORD}"
|
||||
else
|
||||
echo "Local Environment detected: Skipping login, relying on existing auth."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user