Mount host SSH key into deploy containers
This commit is contained in:
parent
a4ac5cf058
commit
ff4511e9c8
@ -32,10 +32,12 @@ steps:
|
||||
|
||||
deploy-backend:
|
||||
image: alpine:3.21
|
||||
volumes:
|
||||
- /home/runner/.ssh:/root/ssh-keys:ro
|
||||
commands:
|
||||
- apk add --no-cache openssh-client
|
||||
- mkdir -p ~/.ssh
|
||||
- cp /etc/woodpecker/ssh/rebreak-deploy ~/.ssh/id_ed25519
|
||||
- cp /root/ssh-keys/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 .
|
||||
@ -48,10 +50,12 @@ steps:
|
||||
|
||||
deploy-admin:
|
||||
image: alpine:3.21
|
||||
volumes:
|
||||
- /home/runner/.ssh:/root/ssh-keys:ro
|
||||
commands:
|
||||
- apk add --no-cache openssh-client
|
||||
- mkdir -p ~/.ssh
|
||||
- cp /etc/woodpecker/ssh/rebreak-deploy ~/.ssh/id_ed25519
|
||||
- cp /root/ssh-keys/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 .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user