From 4e7173f8782b6037416689bf345eaeeca613e647 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 17 Jan 2020 17:26:48 -0500 Subject: [PATCH] drone add special build and deploy for branch master:windows_build --- .drone.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0209b520..0b65f262 100644 --- a/.drone.yml +++ b/.drone.yml @@ -69,7 +69,7 @@ pipeline: image: therecipe/qt:windows_64_static when: repo: cwtch.im/ui - branch: master + branch: [ master, windows_build ] event: push environment: - QT_DIR=/opt/Qt @@ -113,6 +113,24 @@ pipeline: - mkdir $DIR - mv cwtch* $DIR/ - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/ + deploy-windows-build: + image: pivotaldata/concourse-ssh + secrets: [buildfiles_key] + when: + repo: cwtch.im/ui + branch: windows_build + event: push + status: [ success ] + commands: + - apk add --no-cache git + - echo $BUILDFILES_KEY > ~/id_rsab64 + - base64 -d ~/id_rsab64 > ~/id_rsa + - chmod 400 ~/id_rsa + - export DIR=`date +%G.%m.%d-%H.%M`-`git describe --tags` + - cd deploy + - mkdir windows_build/$DIR + - mv cwtch* windows_build/$DIR/ + - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa windows_build buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/ notify-email: image: drillster/drone-email host: build.openprivacy.ca