1
0
Fork 0
This repository has been archived on 2021-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
dennogumi.org-archive/.drone.yml

62 lines
1.4 KiB
YAML

---
kind: pipeline
name: default
steps:
- name: build and deploy
image: einar/jekyll
pull: if-not-exists
commands:
- jekyll build --trace --destination /tmp/build
- rsync -rlpgoD /releases/ /tmp/build/releases/
- rsync -rlpgoD /assets /tmp/build/
- rsync -rlpgoD /tmp/build/ $WEBROOT/
volumes:
- name: sites
path: /sites
- name: releases
path: /releases
- name: assets
path: /assets
- name: docker_sock
path: /var/run/docker.sock
when:
event:
- push
environment:
WEBROOT: /sites/dennogumi.org
- name: notify
image: plugins/matrix
settings:
homeserver: https://conference.heavensinferno.net
roomid:
from_secret: room_id
accesstoken:
from_secret: access_token
userid:
from_secret: user_id
when:
status:
- failure
- success
volumes:
- name: sites
host:
path: /srv/www/htdocs
- name: releases
host:
path: /srv/releases
- name: assets
host:
path: /srv/dennogumi-assets
- name: docker_sock
host:
path: /var/run/docker.sock
---
kind: signature
hmac: e92713e94e0007bd8ef2d6675c13fc834ef4a479e92095471267b7d021e041f7
...