From ada62597f1cf8ef1b91bb6b96ee96e75de783e8c Mon Sep 17 00:00:00 2001 From: c v t Date: Tue, 30 Jun 2020 01:14:50 +0200 Subject: [PATCH] Add Drone config --- .drone.yml | 21 +++++++++++++++++++++ .envrc.sample | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b84d70c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +--- +kind: pipeline +name: deploy to swarm.autonomic.zone +steps: + - name: deployment + image: decentral1se/drone-stack:19.03.8 + settings: + compose: compose.yml + host: tcp://swarm.autonomic.zone:2376 + stack_name: nextcloud + tlsverify: true + environment: + PLUGIN_CACERT: + from_secret: docker_cacert + PLUGIN_CERT: + from_secret: docker_cert + PLUGIN_KEY: + from_secret: docker_key +trigger: + branch: + - main diff --git a/.envrc.sample b/.envrc.sample index f4b28dc..70b3080 100644 --- a/.envrc.sample +++ b/.envrc.sample @@ -1,5 +1,7 @@ export PASSWORD_STORE_DIR=$(pwd)/../../Infrastructure/infrastructure/credentials/password-store export DB_ROOT_PASSWD_VERSION=v1 +export DB_PASSWD_VERSION=v1 export DOMAIN=nextcloud.swarm.autonomic.zone export STACK_NAME=nextcloud +export LETS_ENCRYPT_ENV=production