diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..476a4b2 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,8 @@ +pipeline: + publish: + image: rics3n/drone-ansible + inventory: hosts + playbook: playbook.yml + when: + branch: master + diff --git a/hosts b/hosts new file mode 100644 index 0000000..2c0105b --- /dev/null +++ b/hosts @@ -0,0 +1 @@ +lund.fsfeurope.org diff --git a/playbook.yml b/playbook.yml new file mode 100644 index 0000000..e8976c2 --- /dev/null +++ b/playbook.yml @@ -0,0 +1,19 @@ +--- +- hosts: lund.fsfeurope.org + remote_user: root + + tasks: + - name: build the oidcp container + command: docker build -t pmpc https://git.fsfe.org/jonas/pmpc.git + + - name: run pmpc + docker_container: + name: pmpc + image: pmpc + state: started + restart: yes + ports: + - 1313:1313 + env: + HUGO_BASE_URL: http://lund.fsfeurope.org:1313/ +