changing to use volumes instead of secrets
Some checks failed
ci/woodpecker/manual/test Pipeline failed
Some checks failed
ci/woodpecker/manual/test Pipeline failed
This commit is contained in:
parent
e3c91dd5c6
commit
e2b420ef56
1 changed files with 4 additions and 5 deletions
|
|
@ -10,9 +10,8 @@ steps:
|
|||
- npm run test:unit
|
||||
- name: deploy
|
||||
image: kroniak/ssh-client
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: AUTOBAAN_SSH_KEY
|
||||
volumes:
|
||||
- /etc/ssh/keys:/etc/ssh/keys
|
||||
commands:
|
||||
- echo $${SSH_KEY} > ssh_key
|
||||
- ssh -i ssh_key root@autobaan touch deploy
|
||||
- cat /etc/ssh/keys/id_ed25519
|
||||
- ssh -i /etc/ssh/keys/id_ed25519 root@autobaan touch deploy
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue