From 4064b8d9753519cd5f95a49f41e48a843cbfeab7 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Thu, 18 Jun 2026 08:13:07 +0200 Subject: [PATCH] Use mounted SSH key for deploy steps --- .woodpecker.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 007f349..7aad5d9 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -32,11 +32,10 @@ steps: deploy-backend: image: alpine:3.21 - secrets: [staging_deploy_key] commands: - apk add --no-cache openssh-client - mkdir -p ~/.ssh - - echo "$STAGING_DEPLOY_KEY" | base64 -d > ~/.ssh/id_ed25519 + - cp /etc/woodpecker/ssh/rebreak-deploy ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null - tar czf backend-output.tar.gz -C backend/.output . @@ -49,11 +48,10 @@ steps: deploy-admin: image: alpine:3.21 - secrets: [staging_deploy_key] commands: - apk add --no-cache openssh-client - mkdir -p ~/.ssh - - echo "$STAGING_DEPLOY_KEY" | base64 -d > ~/.ssh/id_ed25519 + - cp /etc/woodpecker/ssh/rebreak-deploy ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -H admin.staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null - tar czf admin-output.tar.gz -C apps/admin/.output .