Compare commits
2 Commits
39d61417cf
...
97101917cc
Author | SHA1 | Date |
---|---|---|
Meutel | 97101917cc | |
Meutel | d21cdb5221 |
20
.drone.yml
20
.drone.yml
|
@ -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
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue