2022-01-14 17:11:38 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-02-06 14:51:22 +01:00
|
|
|
name: test
|
2022-01-14 17:11:38 +01:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
|
|
|
- senpai
|
|
|
|
steps:
|
|
|
|
- name: test-build
|
|
|
|
image: asciidoctor/docker-asciidoctor
|
|
|
|
commands:
|
|
|
|
- asciidoctor *.adoc
|
2022-02-06 14:51:22 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: ssh
|
|
|
|
name: deploy
|
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- senpai
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
server:
|
|
|
|
host:
|
|
|
|
from_secret: ssh_client_host
|
|
|
|
user:
|
|
|
|
from_secret: ssh_client_user
|
|
|
|
ssh_key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
steps:
|
|
|
|
- name: pull
|
|
|
|
commands:
|
|
|
|
- cd /srv/website/projects
|
|
|
|
- git pull
|