18 lines
374 B
YAML
18 lines
374 B
YAML
when:
|
|
- event: push
|
|
- event; manual
|
|
|
|
steps:
|
|
- name: test
|
|
image: docker.io/node:hydrogen-slim
|
|
commands:
|
|
- npm ci
|
|
- npm run test:unit
|
|
- name: deploy
|
|
image: kroniak/ssh-client
|
|
environment:
|
|
SSH_KEY:
|
|
from_secret: AUTOBAAN_SSH_KEY
|
|
commands:
|
|
- echo $${SSH_KEY} > ssh_key
|
|
- ssh -i ssh_key root@autobaan touch deploy
|