Fix deploy: login to registry + use internal registry address
This commit is contained in:
parent
8bfc2b1b0a
commit
e2ae624690
1 changed files with 3 additions and 1 deletions
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue