drone build steps push files
This commit is contained in:
parent
a7c769b49f
commit
9c5d8c6df4
39
.drone.yml
39
.drone.yml
|
@ -6,6 +6,7 @@ pipeline:
|
|||
build-linux:
|
||||
mem_limit: 3G
|
||||
image: therecipe/qt:linux
|
||||
secrets: [buildfiles_key]
|
||||
environment:
|
||||
- QT_DIR=/opt/Qt
|
||||
- QT_DOCKER='true'
|
||||
|
@ -13,10 +14,14 @@ pipeline:
|
|||
commands:
|
||||
- export GOPATH=$GOPATH:/media/sf_GOPATH1/
|
||||
- export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
|
||||
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git
|
||||
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git openssh-client
|
||||
- go get -d
|
||||
- qtdeploy build linux
|
||||
- tar -czf deploy/cwtch-linux-`date +%G-%m-%d-%H-%M`.tar.gz deploy/linux
|
||||
- export FILENAME=cwtch-linux-`date +%G-%m-%d-%H-%M`.tar.gz
|
||||
- tar -czf deploy/$FILENAME deploy/linux
|
||||
- echo $BUILDFILES_KEY > /home/user/id_rsa
|
||||
- chmod 400 /home/user/id_rsa
|
||||
- scp -o StrictHostKeyChecking=no -i /home/user/id_rsa deploy/$FILENAME buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/$fiLENAME
|
||||
# build-android:
|
||||
# mem_limit: 3G
|
||||
# image: therecipe/qt:android
|
||||
|
@ -35,21 +40,21 @@ pipeline:
|
|||
# - go get -d
|
||||
# - qtdeploy build android
|
||||
# - zip -r deploy/cwtch-android-`date +%G-%m-%d-%H-%M`.zip deploy/windows
|
||||
deploy-buildfiles:
|
||||
image: appleboy/drone-scp:v1.3.0
|
||||
settings:
|
||||
host: openprivacy.ca
|
||||
username: buildfiles
|
||||
key:
|
||||
from_secret: buildfiles_key
|
||||
source:
|
||||
- deploy/cwtch-*
|
||||
target:
|
||||
- /home/buildfiles/buildfiles
|
||||
when:
|
||||
branch: master
|
||||
event: push
|
||||
status: [ success ]
|
||||
#deploy-buildfiles:
|
||||
# image: appleboy/drone-scp:v1.3.0
|
||||
# settings:
|
||||
# host: openprivacy.ca
|
||||
# username: buildfiles
|
||||
# key:
|
||||
# from_secret: buildfiles_key
|
||||
# source:
|
||||
# - deploy/cwtch-*
|
||||
# target:
|
||||
# - /home/buildfiles/buildfiles
|
||||
# when:
|
||||
# branch: master
|
||||
# event: push
|
||||
# status: [ success ]
|
||||
notify-email:
|
||||
image: drillster/drone-email
|
||||
host: build.openprivacy.ca
|
||||
|
|
Reference in New Issue