Fix deploy: login to registry + use internal registry address

This commit is contained in:
Daniel 2026-03-07 14:07:57 +01:00
parent 8bfc2b1b0a
commit e2ae624690

View file

@ -70,9 +70,11 @@ deploy:
rules:
- if: $CI_COMMIT_BRANCH == "main"
variables:
DEPLOY_IMAGE: "git.adriahub.de/root/gaming-hub:latest"
DEPLOY_IMAGE: "$INTERNAL_REGISTRY/root/gaming-hub:latest"
CONTAINER_NAME: "gaming-hub"
script:
- echo "[Deploy] Logging into registry..."
- echo "$CI_REGISTRY_PASSWORD" | docker login "$INTERNAL_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
- echo "[Deploy] Pulling $DEPLOY_IMAGE..."
- docker pull "$DEPLOY_IMAGE"
- echo "[Deploy] Stopping $CONTAINER_NAME..."