getting ssh key from secrets
This commit is contained in:
parent
3ca68c5841
commit
aaf9cfde1f
1 changed files with 5 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ steps:
|
|||
- npm run test:unit
|
||||
- name: deploy
|
||||
image: kroniak/ssh-client
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: AUTOBAAN_SSH_KEY
|
||||
commands:
|
||||
- ssh root@autobaan
|
||||
- touch deploy
|
||||
- echo $${SSH_KEY} > ssh_key
|
||||
- ssh -i ssh_key root@autobaan touch deploy
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue