publiccode.si/.drone.yml

51 lines
881 B
YAML
Raw Normal View History

---
kind: pipeline
name: default
2022-01-11 12:57:36 +01:00
type: docker
2017-09-08 11:39:18 +02:00
steps:
- name: copy-sigs
image: alpine:3
commands:
- cp /tmp/signatures.json site/data/signatures/signatures.json
volumes:
- name: signatures
path: /tmp/signatures.json
- name: hugo
image: plugins/hugo
settings:
source: site
validate: true
2019-03-09 18:08:21 +01:00
- name: deploy
image: docker/compose:1.29.1
commands:
- docker-compose -p pmpc-website up --build -d
volumes:
- name: dockersock
path: /var/run/docker.sock
when:
branch:
- master
event:
- push
- tag
- deployment
- cron
2017-06-13 08:54:28 +02:00
2022-01-11 13:18:21 +01:00
# This has to run on the same machine as the forms API until this feature
# exists: https://git.fsfe.org/fsfe-system-hackers/forms/issues/62
2022-01-11 12:49:13 +01:00
node:
cont: lund
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: signatures
host:
path: /srv/forms/pmpc/signatures.json
...