Add Drone config

main
c v t 3 years ago
parent edda693673
commit ada62597f1
  1. 21
      .drone.yml
  2. 2
      .envrc.sample

@ -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

@ -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