Add example .drone.yml

This commit is contained in:
3wc 2020-09-26 12:29:10 +02:00
parent 0791013ab6
commit 210ee59907
3 changed files with 21 additions and 1 deletions

19
.drone.yml Normal file
View File

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

View File

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

View File

@ -1,2 +1,3 @@
README.md
.envrc.sample
.drone.yml