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