17 lines
372 B
YAML
17 lines
372 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
|
|
volumes:
|
|
- /etc/ssh/keys:/etc/ssh/keys
|
|
commands:
|
|
- cat /etc/ssh/keys/id_ed25519
|
|
- ssh -i /etc/ssh/keys/id_ed25519 root@autobaan touch deploy
|