frontpage-content/.drone.yml

62 lines
868 B
YAML
Raw Normal View History

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
2022-06-12 15:28:01 +02:00
- dev
2022-01-14 17:11:38 +01:00
steps:
- name: test-build
image: asciidoctor/docker-asciidoctor
commands:
2022-06-12 15:30:42 +02:00
- asciidoctor projects/*.adoc || true
- asciidoctor diaries/*.adoc || true
2022-02-06 14:51:22 +01:00
---
kind: pipeline
type: ssh
name: deploy
depends_on:
- test
trigger:
branch:
- senpai
event:
- push
server:
host:
2022-02-06 14:53:01 +01:00
from_secret: ssh_host
2022-02-06 14:51:22 +01:00
user:
2022-02-06 14:53:01 +01:00
from_secret: ssh_user
2022-02-06 14:51:22 +01:00
ssh_key:
from_secret: ssh_key
steps:
2022-06-12 15:28:01 +02:00
- name: pull
commands:
- cd /srv/website/projects
- git pull
---
# Push on dev environment
kind: pipeline
type: ssh
2022-06-12 15:29:31 +02:00
name: deploy-dev
2022-06-12 15:28:01 +02:00
depends_on:
- test
trigger:
branch:
- dev
event:
- push
server:
host:
from_secret: ssh_host
user:
from_secret: ssh_user
ssh_key:
from_secret: ssh_key
steps:
2022-02-06 14:51:22 +01:00
- name: pull
commands:
- cd /srv/website/projects
- git pull