Adapt registry deploy jobs for shell prod runner
This commit is contained in:
+8
-1
@@ -88,11 +88,17 @@ postgres-readiness:
|
||||
.docker_build:
|
||||
tags:
|
||||
- call-center-prod
|
||||
variables:
|
||||
DOCKER_HOST: ""
|
||||
DOCKER_TLS_VERIFY: ""
|
||||
DOCKER_CERT_PATH: ""
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
image: docker:27
|
||||
services:
|
||||
- name: docker:27-dind
|
||||
alias: docker
|
||||
before_script:
|
||||
- command -v docker >/dev/null
|
||||
- echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
|
||||
rules:
|
||||
- if: '$ENABLE_REGISTRY_BUILD == "1" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
@@ -152,7 +158,8 @@ deploy-production:
|
||||
environment:
|
||||
name: production
|
||||
before_script:
|
||||
- apk add --no-cache openssh-client rsync
|
||||
- command -v ssh >/dev/null
|
||||
- command -v rsync >/dev/null
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- printf '%s\n' "$DEPLOY_SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
||||
|
||||
Reference in New Issue
Block a user