getting ssh key from secrets

This commit is contained in:
Collin Duncan 2025-04-24 13:31:04 +02:00
parent 3ca68c5841
commit aaf9cfde1f
No known key found for this signature in database

View file

@ -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