2017-06-13 09:08:46 +02:00
|
|
|
pipeline:
|
2017-09-08 11:39:18 +02:00
|
|
|
syntaxcheck:
|
2018-11-06 11:28:23 +01:00
|
|
|
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
|
2018-10-09 14:44:39 +02:00
|
|
|
- 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
|
|
|
|
2018-10-09 14:44:39 +02:00
|
|
|
# Run docker compose
|
2019-07-24 14:15:52 +02:00
|
|
|
- docker-compose up -d
|
2018-10-09 14:44:39 +02:00
|
|
|
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
|
|
|
|
|