fix: docker login on target host before compose pull (registry auth)
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/deployment/deploy Pipeline failed

This commit is contained in:
2026-09-18 22:02:28 +02:00
parent b92473c547
commit da48054dc5
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -2,14 +2,22 @@
# Runs a Compose deployment on the target host. Invoked remotely via SSH
# after compose.yaml, release.env and secrets.decrypted.env have been
# transferred to the same directory as this script.
#
# Usage: deploy-compose <registry> <username> <password>
set -e
REGISTRY="$1"
ZOT_USERNAME="$2"
ZOT_PASSWORD="$3"
cd "$(dirname "$0")"
set -a
. ./release.env
set +a
echo "$ZOT_PASSWORD" | docker login "$REGISTRY" -u "$ZOT_USERNAME" --password-stdin
docker compose \
--project-directory . \
-f compose.yaml \