Merge branch 'feature/drone_drafts_traefik' of meutel/meutel.net_home into master
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Meutel 2019-09-15 09:35:27 +00:00 committed by Gitea
commit 97101917cc
1 changed files with 17 additions and 3 deletions

View File

@ -15,13 +15,27 @@ steps:
branch:
- master
- name: draft
- name: draft-deploy
image: minio/mc
environment:
MC_HOST_meutel:
from_secret: MC_HOST_meutel
commands:
- mc cp --recursive public/* meutel/home-drafts/${DRONE_COMMIT}.home.www.meutel.net/
- mc cp --recursive public/* meutel/home-drafts/${DRONE_COMMIT}/
when:
branch:
exclude:
- master
- name: draft-config
image: consul
environment:
MC_HOST_meutel:
from_secret: MC_HOST_meutel
commands:
- "consul kv put -http-addr=http://consul:8500 traefik/frontends/${DRONE_COMMIT}/backend minio"
- "consul kv put -http-addr=http://consul:8500 traefik/frontends/${DRONE_COMMIT}/entrypoints http"
- "consul kv put -http-addr=http://consul:8500 traefik/frontends/${DRONE_COMMIT}/routes/${DRONE_COMMIT}/rule 'Host:${DRONE_COMMIT}.home.www.meutel.net;AddPrefix:/home-drafts/${DRONE_COMMIT};ReplacePathRegex: ^/home-drafts/${DRONE_COMMIT}/$ /home-drafts/${DRONE_COMMIT}/index.html'"
- echo http://${DRONE_COMMIT}.home.www.meutel.net
when:
branch:
@ -34,6 +48,6 @@ trigger:
---
kind: signature
hmac: ab23bdbe27bebb1c888603990c22f44b200d8de81f1beffae26a81031a2e3ee9
hmac: 51d6d806563a63fd83f9944f577642debdc0a6467ccd3cb69ae6baddd0cf6365
...