fix(ci): prioritize /root/.ssh/gitea_ci_key mount
AS Talange CI/CD Pipeline / Build & Run Unit Tests (push) Successful in 4m56s
AS Talange CI/CD Pipeline / Deploy to Test Environment (push) Successful in 2m23s

This commit is contained in:
2026-09-03 14:29:20 +02:00
parent 2d390b553d
commit 390c547920
+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 ; \