Use mounted SSH key for deploy steps
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Deploy Staging / Build backend (Nitro) (push) Has been cancelled
Deploy Staging / Deploy zu Hetzner (push) Has been cancelled

This commit is contained in:
chahinebrini 2026-06-18 08:13:07 +02:00
parent 1e66c512f1
commit 4064b8d975

View File

@ -32,11 +32,10 @@ steps:
deploy-backend: deploy-backend:
image: alpine:3.21 image: alpine:3.21
secrets: [staging_deploy_key]
commands: commands:
- apk add --no-cache openssh-client - apk add --no-cache openssh-client
- mkdir -p ~/.ssh - 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 - chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan -H staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null - ssh-keyscan -H staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null
- tar czf backend-output.tar.gz -C backend/.output . - tar czf backend-output.tar.gz -C backend/.output .
@ -49,11 +48,10 @@ steps:
deploy-admin: deploy-admin:
image: alpine:3.21 image: alpine:3.21
secrets: [staging_deploy_key]
commands: commands:
- apk add --no-cache openssh-client - apk add --no-cache openssh-client
- mkdir -p ~/.ssh - 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 - chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan -H admin.staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null - ssh-keyscan -H admin.staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null
- tar czf admin-output.tar.gz -C apps/admin/.output . - tar czf admin-output.tar.gz -C apps/admin/.output .