WIP: ansible deploy branch
Some checks are pending
continuous-integration/drone/push Build is pending

This commit is contained in:
Meutel 2019-09-15 16:55:25 +02:00
parent 586f06d484
commit 29abd3382c
2 changed files with 25 additions and 0 deletions

21
.ansible/deploy-draft.yml Normal file
View File

@ -0,0 +1,21 @@
---
- hosts: docker
tasks:
- name: deploy draft
docker_container:
name: "bouquins_draft_{{ draft_name }}"
image: "reg.meutel.net/go-bouquins:{{ draft_name }}"
state: present
recreate: yes
labels:
traefik.enable: true
traefik.port: 8080
traefik.docker.network: proxybackend
traefik.frontend.rule: "Host:{{ draft_name }}.bouquins.www.meutel.net"
networks:
name: proxybackend
# TODO volumes
volumes_from:
- mydata
# vim:ft=ansible:

View File

@ -54,6 +54,10 @@ steps:
branch:
- feature/*
- name: deploy-branch
# TODO ansible
image: reg.meutel.net/go-bouquins:${DRONE_BRANCH##feature/}
trigger:
event:
- push