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
1 changed files with 14 additions and 9 deletions

View File

@ -1,16 +1,21 @@
---
kind: pipeline
name: default
name: deploy to swarm.autonomic.zone
steps:
- name: Deploy Gitea with Dokku
image: appleboy/drone-git-push:0.2.1-linux-amd64
- name: deployment
image: decentral1se/drone-stack:19.03.8
settings:
remote: ssh://dokku@dokku.autonomic.zone:222/gitea
ssh_key:
from_secret: drone_deploy_key
compose: compose.yml
host: tcp://swarm.autonomic.zone:2376
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:
branch:
- master
event:
exclude:
- pull_request