publiccode.si/playbook.yml

25 lines
679 B
YAML

---
- hosts: lund.fsfeurope.org
remote_user: root
tasks:
- name: build the pmpc container
command: docker build -t pmpc https://git.fsfe.org/pmpc/website.git
- name: run pmpc
docker_container:
name: pmpc
image: pmpc
state: started
restart: yes
restart_policy: always
env:
HUGO_BASE_URL: https://publiccode.eu/
VIRTUAL_HOST: publiccode.eu,www.publiccode.eu
LETSENCRYPT_HOST: publiccode.eu,www.publiccode.eu
LETSENCRYPT_EMAIL: jonas@fsfe.org
volumes:
- "/srv/forms/pmpc:/usr/share/blog/data/signatures:ro"
- "/srv/pmpc-cred:/srv/cred:ro"