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: 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:

View File

@ -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
... ...