36 lines
482 B
YAML
36 lines
482 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: test
|
|
trigger:
|
|
event:
|
|
- push
|
|
branch:
|
|
- senpai
|
|
steps:
|
|
- name: test-build
|
|
image: asciidoctor/docker-asciidoctor
|
|
commands:
|
|
- asciidoctor *.adoc
|
|
---
|
|
kind: pipeline
|
|
type: ssh
|
|
name: deploy
|
|
depends_on:
|
|
- test
|
|
trigger:
|
|
branch:
|
|
- senpai
|
|
event:
|
|
- push
|
|
server:
|
|
host:
|
|
from_secret: ssh_host
|
|
user:
|
|
from_secret: ssh_user
|
|
ssh_key:
|
|
from_secret: ssh_key
|
|
steps:
|
|
- name: pull
|
|
commands:
|
|
- cd /srv/website/projects
|
|
- git pull |