publiccode.si/.drone.yml

28 lines
794 B
YAML
Raw Normal View History

2017-06-13 09:08:46 +02:00
pipeline:
2017-09-08 11:39:18 +02:00
syntaxcheck:
image: monachus/hugo
2017-09-08 11:39:18 +02:00
commands:
2017-09-12 10:00:13 +02:00
- cd site; ./build/build.sh syntax
2017-09-08 11:39:18 +02:00
2017-06-13 09:08:46 +02:00
deploy:
2019-03-09 18:08:21 +01:00
image: tmaier/docker-compose
2017-06-13 09:10:11 +02:00
commands:
2019-03-09 18:08:21 +01:00
# Install git
- apk add -q git
# Clone the git remository
# Make the signatures file available to the PMPC website
# Build the docker container
# Clean things up
- git clone https://git.fsfe.org/pmpc/website.git /tmp/pmpc-build && cd /tmp/pmpc-build/ && cp /tmp/signatures/signatures.json site/data/signatures/signatures.json && docker build -t pmpc .
2019-03-09 18:08:21 +01:00
# Run docker compose
- docker-compose up -d
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /srv/forms/pmpc:/tmp/signatures:ro
2017-06-13 08:54:28 +02:00
when:
2018-04-11 14:55:10 +02:00
event: [push, tag, deployment]
2017-06-13 08:54:28 +02:00
branch: master