From 3efb31e9f36cad5e3573b4d44dbc9a6f55f20429 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 25 Mar 2021 14:14:39 -0700 Subject: [PATCH] drone.yml: deploy stage debug --- .drone.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e22a65c..2ae65b2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,14 +62,22 @@ steps: - name: deploy-buildfiles image: kroniak/ssh-client - secrets: [buildfiles_key] + environment: + BUILDFILES_KEY: + from_secret: buildfiles_key + GOGS_ACCOUNT_TOKEN: + from_secret: gogs_account_token + secrets: [gogs_account_token] when: event: push status: [ success ] commands: - echo $BUILDFILES_KEY > ~/id_rsab64 + - echo $GOGS_ACCOUNT_TOKEN > ~/gogs_account_token + - wc ~/gogs_account_token - base64 -d ~/id_rsab64 > ~/id_rsa - chmod 400 ~/id_rsa + - ls -l -h ~/id_rsa* ~/gogs_account_token - export DIR=libCwtch-go-`echo VERSION`-`echo BUILDDATE` - mkdir $DIR - mv libCwtch.* $DIR/