From a4c852d25486f97e668f27d214c91bff76061326 Mon Sep 17 00:00:00 2001 From: Youssef Date: Thu, 3 Sep 2026 15:02:09 +0200 Subject: [PATCH] fix(ci): mount /home/ucef/.ssh and prioritize gitea_ci_key over generic host keys --- .gitea/workflows/ci-prod.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-prod.yml b/.gitea/workflows/ci-prod.yml index 6b0067e..f6ff097 100644 --- a/.gitea/workflows/ci-prod.yml +++ b/.gitea/workflows/ci-prod.yml @@ -132,6 +132,7 @@ jobs: docker run --rm --net=host \ -v "$(pwd):/workspace" -w /workspace \ + -v "/home/ucef/.ssh:/home/ucef/.ssh:ro" \ -v "/home/ubuntu/.ssh:/home/ubuntu/.ssh:ro" \ -v "/root/.ssh:/root/.ssh:ro" \ -e TARGET_HOST="${TARGET_HOST}" \ @@ -142,7 +143,7 @@ jobs: alpine:latest sh -c ' apk add --no-cache openssh-client rsync && \ FOUND_KEY="" && \ - 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 /home/ucef/.ssh/gitea_ci_key /home/ubuntu/.ssh/gitea_ci_key /root/.ssh/gitea_ci_key /home/ucef/.ssh/id_ed25519 /home/ubuntu/.ssh/id_ed25519 /root/.ssh/id_ed25519 /home/ucef/.ssh/id_rsa /home/ubuntu/.ssh/id_rsa /root/.ssh/id_rsa; do \ if [ -f "$k" ]; then FOUND_KEY="$k"; break; fi ; \ done && \ if [ -n "$FOUND_KEY" ]; then \