From 3e6eaca789b906f80a2aff0ab3570adfc4f5130d Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 25 Mar 2021 14:00:52 -0700 Subject: [PATCH] drone.yml: deploy stage + notify-gogs on PR only --- .drone.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index af2473b..e22a65c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,6 +60,21 @@ steps: commands: - make windows + - name: deploy-buildfiles + image: kroniak/ssh-client + secrets: [buildfiles_key] + when: + event: push + status: [ success ] + commands: + - echo $BUILDFILES_KEY > ~/id_rsab64 + - base64 -d ~/id_rsab64 > ~/id_rsa + - chmod 400 ~/id_rsa + - export DIR=libCwtch-go-`echo VERSION`-`echo BUILDDATE` + - mkdir $DIR + - mv libCwtch.* $DIR/ + - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/ + - name: notify-email image: drillster/drone-email host: build.openprivacy.ca @@ -72,6 +87,7 @@ steps: - name: notify-gogs image: openpriv/drone-gogs when: + event: pull_request status: [ success, changed, failure ] secrets: [gogs_account_token] gogs_url: https://git.openprivacy.ca