WIP: ansible deploy branch
Some checks are pending
continuous-integration/drone/push Build is pending
Some checks are pending
continuous-integration/drone/push Build is pending
This commit is contained in:
parent
586f06d484
commit
29abd3382c
21
.ansible/deploy-draft.yml
Normal file
21
.ansible/deploy-draft.yml
Normal 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:
|
@ -54,6 +54,10 @@ steps:
|
||||
branch:
|
||||
- feature/*
|
||||
|
||||
- name: deploy-branch
|
||||
# TODO ansible
|
||||
image: reg.meutel.net/go-bouquins:${DRONE_BRANCH##feature/}
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
Loading…
Reference in New Issue
Block a user