drone.yml: deploy stage debug
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3e6eaca789
commit
3efb31e9f3
10
.drone.yml
10
.drone.yml
|
@ -62,14 +62,22 @@ steps:
|
||||||
|
|
||||||
- name: deploy-buildfiles
|
- name: deploy-buildfiles
|
||||||
image: kroniak/ssh-client
|
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:
|
when:
|
||||||
event: push
|
event: push
|
||||||
status: [ success ]
|
status: [ success ]
|
||||||
commands:
|
commands:
|
||||||
- echo $BUILDFILES_KEY > ~/id_rsab64
|
- echo $BUILDFILES_KEY > ~/id_rsab64
|
||||||
|
- echo $GOGS_ACCOUNT_TOKEN > ~/gogs_account_token
|
||||||
|
- wc ~/gogs_account_token
|
||||||
- base64 -d ~/id_rsab64 > ~/id_rsa
|
- base64 -d ~/id_rsab64 > ~/id_rsa
|
||||||
- chmod 400 ~/id_rsa
|
- chmod 400 ~/id_rsa
|
||||||
|
- ls -l -h ~/id_rsa* ~/gogs_account_token
|
||||||
- export DIR=libCwtch-go-`echo VERSION`-`echo BUILDDATE`
|
- export DIR=libCwtch-go-`echo VERSION`-`echo BUILDDATE`
|
||||||
- mkdir $DIR
|
- mkdir $DIR
|
||||||
- mv libCwtch.* $DIR/
|
- mv libCwtch.* $DIR/
|
||||||
|
|
Loading…
Reference in New Issue