fix ansible
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Meutel 2019-09-28 08:58:21 +02:00
parent 6ae88a3c79
commit b58fe592c5
2 changed files with 14 additions and 8 deletions

View File

@ -5,16 +5,22 @@
docker_container:
name: "bouquins_draft_{{ draft_name }}"
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
state: present
state: started
recreate: yes
labels:
traefik.enable: true
traefik.port: 8080
traefik.docker.network: proxybackend
traefik.enable: 'true'
traefik.port: '9000'
traefik.docker.network: 'proxybackend'
traefik.frontend.rule: "Host:{{ draft_name }}.bouquins.www.meutel.net"
traefik.frontend.entryPoints: http
networks:
name: proxybackend
- name: proxybackend
purge_networks: yes
volumes:
- bouquins_draft:/root/data
register: deploy_out
- debug:
msg: "{{ deploy_out.container }}"
# vim:ft=ansible:

View File

@ -55,13 +55,13 @@ steps:
- name: deploy-branch
image: plugins/ansible:1
environment:
draft_name: ${DRONE_BRANCH##feature/}
settings:
playbook: .ansible/deploy-draft.yml
inventory: .ansible/inventory
private_key:
from_secret: drone_ssh_key
extra_vars:
- draft_name=${DRONE_BRANCH##feature/}
when:
branch:
- feature/*
@ -73,6 +73,6 @@ trigger:
---
kind: signature
hmac: 7a0b174d395933fd3e9826391addd09db9272668e77291f78d23528b370c1cf4
hmac: 402ef53d245969c2df4d6ec14d51d3d9665856c8fa0ec8248755a209fb66ff36
...