2021-11-15 19:46:47 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- name: build
|
|
|
|
image: egraven/zola:latest
|
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
path: ./public
|
|
|
|
commands:
|
|
|
|
- zola build
|
|
|
|
- name: deploy
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
path: ./public
|
|
|
|
settings:
|
2021-11-22 14:41:28 +00:00
|
|
|
hosts: [ "nixaalb.org" ]
|
|
|
|
user: deploy-web
|
2021-11-15 19:46:47 +00:00
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
port: 22
|
2021-11-22 14:43:07 +00:00
|
|
|
target: /var/www/nixaalb.org
|
2021-11-15 19:46:47 +00:00
|
|
|
source: ./public
|
|
|
|
|
2021-11-15 20:02:18 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|