Try env approach

This commit is contained in:
Luke Murphy 2020-04-30 14:27:14 +02:00
parent e08b6ae9f9
commit 672fbc97e9
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 12 additions and 8 deletions

View File

@ -16,6 +16,18 @@ name: swarm.autonomic.zone
steps:
- name: swarm.autonomic.zone
image: decentral1se/drone-stack:19.03.8-override-compose
environment:
DOCKER_CACERT:
from_secret: docker_cacert
DOCKER_CERT:
from_secret: docker_cert
DOCKER_KEY:
from_secret: docker_key
PLUGIN_COMPOSE: docker-compose.yml
PLUGIN_HOST: "tcp://swarm.autonomic.zone:2376"
PLUGIN_OVERRIDE_COMPOSE: docker-compose.production.yml
PLUGIN_STACK_NAME: traefik
PLUGIN_TLSVERIFY: true
trigger:
branch:
- master

8
.env
View File

@ -1,8 +0,0 @@
DOCKER_CACERT=$docker_cacert
DOCKER_CERT=$docker_cert
DOCKER_KEY=$docker_key
PLUGIN_COMPOSE=docker-compose.yml
PLUGIN_HOST=tcp://swarm.autonomic.zone:2376
PLUGIN_OVERRIDE_COMPOSE=docker-compose.production.yml
PLUGIN_STACK_NAME=traefik
PLUGIN_TLSVERIFY=true