2019-10-08 20:46:27 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- name: build
|
2021-02-04 20:51:59 +00:00
|
|
|
image: xperimental/hugo:0.80.0
|
2019-10-08 20:46:27 +00:00
|
|
|
commands:
|
|
|
|
- hugo
|
|
|
|
- name: publish
|
|
|
|
image: alpine
|
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
path: /output
|
|
|
|
commands:
|
|
|
|
- apk add rsync
|
|
|
|
- rsync -av --del ./public/ /output/
|
|
|
|
- chown -R 33:33 /output
|
|
|
|
when:
|
2020-11-03 22:43:35 +00:00
|
|
|
repo:
|
|
|
|
- hacknology/website
|
2019-10-08 20:46:27 +00:00
|
|
|
branch:
|
|
|
|
- master
|
2020-11-03 22:49:20 +00:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2019-10-08 20:46:27 +00:00
|
|
|
- name: verify
|
2020-06-10 12:56:36 +00:00
|
|
|
image: xperimental/linky:0.4.0
|
2019-10-08 20:46:27 +00:00
|
|
|
commands:
|
|
|
|
- linky https://www.hacknology.de
|
|
|
|
when:
|
2020-11-03 22:43:35 +00:00
|
|
|
repo:
|
|
|
|
- hacknology/website
|
2019-10-08 20:46:27 +00:00
|
|
|
branch:
|
|
|
|
- master
|
2020-11-03 22:49:20 +00:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2019-10-08 20:46:27 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: output
|
|
|
|
host:
|
|
|
|
path: /var/www/html
|