From 210ee59907a3db3fcf2924d389bd0c1be039f08f Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Sat, 26 Sep 2020 12:29:10 +0200 Subject: [PATCH] Add example .drone.yml --- .drone.yml | 19 +++++++++++++++++++ .envrc.sample | 2 +- .gitea/template | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..102c04d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,19 @@ +--- +kind: pipeline +name: deploy to swarm-test.autonomic.zone +steps: + - name: deployment + image: decentral1se/stack-ssh-deploy:latest + settings: + host: swarm-test.autonomic.zone + stack: ${REPO_NAME_KEBAB} + purge: true + deploy_key: + from_secret: drone_ssh_swarm_test + environment: + DOMAIN: ${REPO_NAME_KEBAB}.swarm-test.autonomic.zone + STACK_NAME: ${REPO_NAME_KEBAB} + LETS_ENCRYPT_ENV: production +trigger: + branch: + - main diff --git a/.envrc.sample b/.envrc.sample index 3c28b48..1a10189 100644 --- a/.envrc.sample +++ b/.envrc.sample @@ -1,4 +1,4 @@ export SERVICE=${REPO_NAME_SNAKE} export DOMAIN=${REPO_NAME_KEBAB}.example.com -export STACK_NAME=${REPO_NAME_SNAKE} +export STACK_NAME=${REPO_NAME_KEBAB} export LETS_ENCRYPT_ENV=production diff --git a/.gitea/template b/.gitea/template index 783aa87..718cb23 100644 --- a/.gitea/template +++ b/.gitea/template @@ -1,2 +1,3 @@ README.md .envrc.sample +.drone.yml