This commit is contained in:
parent
6ae88a3c79
commit
b58fe592c5
@ -5,16 +5,22 @@
|
|||||||
docker_container:
|
docker_container:
|
||||||
name: "bouquins_draft_{{ draft_name }}"
|
name: "bouquins_draft_{{ draft_name }}"
|
||||||
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
|
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
|
||||||
state: present
|
state: started
|
||||||
recreate: yes
|
recreate: yes
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: true
|
traefik.enable: 'true'
|
||||||
traefik.port: 8080
|
traefik.port: '9000'
|
||||||
traefik.docker.network: proxybackend
|
traefik.docker.network: 'proxybackend'
|
||||||
traefik.frontend.rule: "Host:{{ draft_name }}.bouquins.www.meutel.net"
|
traefik.frontend.rule: "Host:{{ draft_name }}.bouquins.www.meutel.net"
|
||||||
|
traefik.frontend.entryPoints: http
|
||||||
networks:
|
networks:
|
||||||
name: proxybackend
|
- name: proxybackend
|
||||||
|
purge_networks: yes
|
||||||
volumes:
|
volumes:
|
||||||
- bouquins_draft:/root/data
|
- bouquins_draft:/root/data
|
||||||
|
register: deploy_out
|
||||||
|
|
||||||
|
- debug:
|
||||||
|
msg: "{{ deploy_out.container }}"
|
||||||
|
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
|
@ -55,13 +55,13 @@ steps:
|
|||||||
|
|
||||||
- name: deploy-branch
|
- name: deploy-branch
|
||||||
image: plugins/ansible:1
|
image: plugins/ansible:1
|
||||||
environment:
|
|
||||||
draft_name: ${DRONE_BRANCH##feature/}
|
|
||||||
settings:
|
settings:
|
||||||
playbook: .ansible/deploy-draft.yml
|
playbook: .ansible/deploy-draft.yml
|
||||||
inventory: .ansible/inventory
|
inventory: .ansible/inventory
|
||||||
private_key:
|
private_key:
|
||||||
from_secret: drone_ssh_key
|
from_secret: drone_ssh_key
|
||||||
|
extra_vars:
|
||||||
|
- draft_name=${DRONE_BRANCH##feature/}
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- feature/*
|
- feature/*
|
||||||
@ -73,6 +73,6 @@ trigger:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 7a0b174d395933fd3e9826391addd09db9272668e77291f78d23528b370c1cf4
|
hmac: 402ef53d245969c2df4d6ec14d51d3d9665856c8fa0ec8248755a209fb66ff36
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user