Add debug output for deploy key
This commit is contained in:
parent
3db9dd9326
commit
53f5b2a2f1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user