34 lines
466 B
YAML
34 lines
466 B
YAML
kind: pipeline
|
|
type: ssh
|
|
name: default
|
|
|
|
server:
|
|
host: nuc.home
|
|
user: marco
|
|
ssh_key:
|
|
from_secret: ssh_key
|
|
|
|
steps:
|
|
- name: pull
|
|
commands:
|
|
- cd /home/marco/containers/data/sensor-web-v2
|
|
- git fetch
|
|
- git reset --hard origin/master
|
|
|
|
- name: build
|
|
commands:
|
|
- make build
|
|
|
|
- name: test
|
|
commands:
|
|
- make test
|
|
|
|
- name: deploy
|
|
commands:
|
|
- cd /home/marco/containers
|
|
- docker-compose up --build -d sensor-web-v2
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|