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