fix(ci): fix heredoc variable expansion for SSH docker login
This commit is contained in:
@@ -438,12 +438,14 @@ jobs:
|
|||||||
scp docker-compose.yml root@alpha.mintel.me:$SITE_DIR/docker-compose.yml
|
scp docker-compose.yml root@alpha.mintel.me:$SITE_DIR/docker-compose.yml
|
||||||
|
|
||||||
# Execute remote commands
|
# Execute remote commands
|
||||||
|
TOKEN_VALUE="$REGISTRY_PASS"
|
||||||
|
USER_VALUE="$REGISTRY_USER"
|
||||||
ssh root@alpha.mintel.me bash <<DEPLOYEOF
|
ssh root@alpha.mintel.me bash <<DEPLOYEOF
|
||||||
set -e
|
set -e
|
||||||
cd $SITE_DIR
|
cd ${SITE_DIR}
|
||||||
printf '%s' '$REGISTRY_PASS' | docker login git.infra.mintel.me -u '$REGISTRY_USER' --password-stdin
|
printf '%s' "${TOKEN_VALUE}" | docker login git.infra.mintel.me -u "${USER_VALUE}" --password-stdin
|
||||||
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file '$ENV_FILE' pull
|
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file '${ENV_FILE}' pull
|
||||||
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file '$ENV_FILE' up -d --remove-orphans
|
docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file '${ENV_FILE}' up -d --remove-orphans
|
||||||
DEPLOYEOF
|
DEPLOYEOF
|
||||||
|
|
||||||
# Sanitize Payload Migrations: Replace 'dev' push entries with proper migration names.
|
# Sanitize Payload Migrations: Replace 'dev' push entries with proper migration names.
|
||||||
|
|||||||
Reference in New Issue
Block a user