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