From 08e84f4e8d9e272e99f4b3f3edb9cf9bf4216f7f Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 14 Jan 2019 23:53:53 +0100 Subject: [PATCH] re-add automatic deploy --- .drone1.yml | 94 ++++++++++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/.drone1.yml b/.drone1.yml index c3eb5f26..8fd767fe 100644 --- a/.drone1.yml +++ b/.drone1.yml @@ -206,50 +206,50 @@ steps: when: event: [ push ] branch: [ master ] -# -## Build the docker image and push it to docker hub -# - name: docker -# image: plugins/docker -# pull: true -# settings: -# username: -# from_secret: docker_username -# password: -# from_secret: docker_password -# repo: vikunja/api -# auto_tag: true -# -## Update the instance on try.vikunja.io -# - name: rancher -# image: peloton/drone-rancher -# settings: -# url: http://server01.kolaente.de:8080/v1 -# access_key: -# from_secret: RANCHER_ACCESS_KEY -# secret_key: -# from_secret: RANCHER_SECRET_KEY -# service: vikunja-dev/api -# docker_image: vikunja/api -# confirm: true -# depends_on: [ docker ] -# -## Tell people vikunja was updated -# - name: telegram -# image: appleboy/drone-telegram -# settings: -# token: -# from_secret: TELEGRAM_TOKEN -# to: -# from_secret: TELEGRAM_TO -# message: > -# {{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}} -# {{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}` -# Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}. -# depends_on: -# - rancher -# - release-version -# - release-latest -# when: -# status: -# - success -# - failure \ No newline at end of file + +# Build the docker image and push it to docker hub + - name: docker + image: plugins/docker + pull: true + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: vikunja/api + auto_tag: true + +# Update the instance on try.vikunja.io + - name: rancher + image: peloton/drone-rancher + settings: + url: http://server01.kolaente.de:8080/v1 + access_key: + from_secret: RANCHER_ACCESS_KEY + secret_key: + from_secret: RANCHER_SECRET_KEY + service: vikunja-dev/api + docker_image: vikunja/api + confirm: true + depends_on: [ docker ] + +# Tell people vikunja was updated + - name: telegram + image: appleboy/drone-telegram + settings: + token: + from_secret: TELEGRAM_TOKEN + to: + from_secret: TELEGRAM_TO + message: > + {{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}} + {{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}` + Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}. + depends_on: + - rancher + - release-version + - release-latest + when: + status: + - success + - failure \ No newline at end of file