fix(ci): prioritize /root/.ssh/gitea_ci_key mount
AS Talange CI/CD Pipeline - Production / Build & Run Unit Tests (push) Successful in 2m15s
AS Talange CI/CD Pipeline - Production / Deploy to Prod Environment (push) Failing after 1m27s

This commit is contained in:
2026-09-03 14:29:20 +02:00
parent 02f9674b7a
commit 2472407cca
+2 -2
View File
@@ -128,8 +128,8 @@ jobs:
docker run --rm --net=host \
-v "$(pwd):/workspace" -w /workspace \
-v "/root/.ssh:/root/.ssh:ro" \
-v "/home/ubuntu/.ssh:/home/ubuntu/.ssh:ro" \
-v "${HOME}/.ssh:/root/.ssh:ro" \
-e TARGET_HOST="${TARGET_HOST}" \
-e TARGET_USER="${TARGET_USER}" \
-e PORT="${PORT}" \
@@ -137,7 +137,7 @@ jobs:
alpine:latest sh -c '
apk add --no-cache openssh-client rsync && \
KEY_ARG="" && \
for k in /home/ubuntu/.ssh/gitea_ci_key /root/.ssh/gitea_ci_key /home/ubuntu/.ssh/id_ed25519 /root/.ssh/id_ed25519 /home/ubuntu/.ssh/id_rsa /root/.ssh/id_rsa; do \
for k in /root/.ssh/gitea_ci_key /home/ubuntu/.ssh/gitea_ci_key /root/.ssh/id_ed25519 /root/.ssh/id_rsa; do \
if [ -f "$k" ]; then \
KEY_ARG="-i $k -o IdentitiesOnly=yes" && break ; \
fi ; \