Use swarm deployment for drone

This commit is contained in:
Luke Murphy 2020-06-23 12:15:17 +02:00
parent f88d54f535
commit acb43e7537
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -1,16 +1,21 @@
--- ---
kind: pipeline kind: pipeline
name: default name: deploy to swarm.autonomic.zone
steps: steps:
- name: Deploy Gitea with Dokku - name: deployment
image: appleboy/drone-git-push:0.2.1-linux-amd64 image: decentral1se/drone-stack:19.03.8
settings: settings:
remote: ssh://dokku@dokku.autonomic.zone:222/gitea compose: compose.yml
ssh_key: host: tcp://swarm.autonomic.zone:2376
from_secret: drone_deploy_key stack_name: gitea
tlsverify: true
environment:
PLUGIN_CACERT:
from_secret: docker_cacert
PLUGIN_CERT:
from_secret: docker_cert
PLUGIN_KEY:
from_secret: docker_key
trigger: trigger:
branch: branch:
- master - master
event:
exclude:
- pull_request