From acb43e75378ebf8d7701ad6e396640d9e53fa6e5 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 23 Jun 2020 12:15:17 +0200 Subject: [PATCH] Use swarm deployment for drone --- .drone.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index c16c57f..ce47695 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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