Added playbook for Ansible
parent
efd76f6482
commit
81ca84281d
|
@ -0,0 +1,8 @@
|
|||
pipeline:
|
||||
publish:
|
||||
image: rics3n/drone-ansible
|
||||
inventory: hosts
|
||||
playbook: playbook.yml
|
||||
when:
|
||||
branch: master
|
||||
|
|
@ -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/
|
||||
|
Loading…
Reference in New Issue