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
|
- npm run test:unit
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: kroniak/ssh-client
|
image: kroniak/ssh-client
|
||||||
environment:
|
volumes:
|
||||||
SSH_KEY:
|
- /etc/ssh/keys:/etc/ssh/keys
|
||||||
from_secret: AUTOBAAN_SSH_KEY
|
|
||||||
commands:
|
commands:
|
||||||
- echo $${SSH_KEY} > ssh_key
|
- cat /etc/ssh/keys/id_ed25519
|
||||||
- ssh -i ssh_key root@autobaan touch deploy
|
- ssh -i /etc/ssh/keys/id_ed25519 root@autobaan touch deploy
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue