From 53f5b2a2f167b0359768feab91cfb2d28601fd51 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Thu, 18 Jun 2026 07:52:49 +0200 Subject: [PATCH] Add debug output for deploy key --- .woodpecker.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index feb2b22..974ad2e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -30,6 +30,16 @@ steps: - cd apps/admin && pnpm build depends_on: [install] + debug-secret: + image: alpine:3.21 + secrets: [staging_deploy_key] + commands: + - echo "SECRET_LENGTH=$(echo -n \"$STAGING_DEPLOY_KEY\" | wc -c)" + - echo "$STAGING_DEPLOY_KEY" | base64 -d > /tmp/key_test + - wc -l /tmp/key_test + - head -1 /tmp/key_test + depends_on: [build-backend] + deploy-backend: image: alpine:3.21 secrets: [staging_deploy_key] @@ -38,6 +48,7 @@ steps: - mkdir -p ~/.ssh - echo "$STAGING_DEPLOY_KEY" | base64 -d > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 + - ssh-keygen -y -f ~/.ssh/id_ed25519 - ssh-keyscan -H staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null - tar czf backend-output.tar.gz -C backend/.output . - scp -i ~/.ssh/id_ed25519 backend-output.tar.gz root@staging.rebreak.org:/srv/rebreak/backend/.output-incoming.tar.gz