drone.yml: deploy stage working and sha256
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3efb31e9f3
commit
4967f5f3f8
12
.drone.yml
12
.drone.yml
|
@ -65,22 +65,20 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
BUILDFILES_KEY:
|
BUILDFILES_KEY:
|
||||||
from_secret: buildfiles_key
|
from_secret: buildfiles_key
|
||||||
GOGS_ACCOUNT_TOKEN:
|
|
||||||
from_secret: gogs_account_token
|
|
||||||
secrets: [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-`cat VERSION`-`cat BUILDDATE`
|
||||||
- export DIR=libCwtch-go-`echo VERSION`-`echo BUILDDATE`
|
|
||||||
- mkdir $DIR
|
- mkdir $DIR
|
||||||
- mv libCwtch.* $DIR/
|
- mv libCwtch.so libCwtch.dll cwtch.aar cwtch-sources.jar libCwtch.h $DIR/
|
||||||
|
- cd $DIR
|
||||||
|
- find . -type f -exec sha256sum {} \; > sha256s.txt
|
||||||
|
- cd ..
|
||||||
- scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
|
- scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
|
||||||
|
|
||||||
- name: notify-email
|
- name: notify-email
|
||||||
|
|
Loading…
Reference in New Issue