Clean up Woodpecker pipeline
This commit is contained in:
parent
681356f0e9
commit
1e66c512f1
@ -30,16 +30,6 @@ steps:
|
|||||||
- cd apps/admin && pnpm build
|
- cd apps/admin && pnpm build
|
||||||
depends_on: [install]
|
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:
|
deploy-backend:
|
||||||
image: alpine:3.21
|
image: alpine:3.21
|
||||||
secrets: [staging_deploy_key]
|
secrets: [staging_deploy_key]
|
||||||
@ -48,7 +38,6 @@ steps:
|
|||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo "$STAGING_DEPLOY_KEY" | base64 -d > ~/.ssh/id_ed25519
|
- echo "$STAGING_DEPLOY_KEY" | base64 -d > ~/.ssh/id_ed25519
|
||||||
- chmod 600 ~/.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
|
- 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 .
|
||||||
- scp -i ~/.ssh/id_ed25519 backend-output.tar.gz root@staging.rebreak.org:/srv/rebreak/backend/.output-incoming.tar.gz
|
- scp -i ~/.ssh/id_ed25519 backend-output.tar.gz root@staging.rebreak.org:/srv/rebreak/backend/.output-incoming.tar.gz
|
||||||
@ -74,5 +63,3 @@ steps:
|
|||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
# Woodpecker CI
|
|
||||||
# Deploy fix
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user