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:
|
build-linux:
|
||||||
mem_limit: 3G
|
mem_limit: 3G
|
||||||
image: therecipe/qt:linux
|
image: therecipe/qt:linux
|
||||||
|
secrets: [buildfiles_key]
|
||||||
environment:
|
environment:
|
||||||
- QT_DIR=/opt/Qt
|
- QT_DIR=/opt/Qt
|
||||||
- QT_DOCKER='true'
|
- QT_DOCKER='true'
|
||||||
|
@ -13,10 +14,14 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- export GOPATH=$GOPATH:/media/sf_GOPATH1/
|
- export GOPATH=$GOPATH:/media/sf_GOPATH1/
|
||||||
- export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
|
- 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
|
- go get -d
|
||||||
- qtdeploy build linux
|
- 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:
|
# build-android:
|
||||||
# mem_limit: 3G
|
# mem_limit: 3G
|
||||||
# image: therecipe/qt:android
|
# image: therecipe/qt:android
|
||||||
|
@ -35,21 +40,21 @@ pipeline:
|
||||||
# - go get -d
|
# - go get -d
|
||||||
# - qtdeploy build android
|
# - qtdeploy build android
|
||||||
# - zip -r deploy/cwtch-android-`date +%G-%m-%d-%H-%M`.zip deploy/windows
|
# - zip -r deploy/cwtch-android-`date +%G-%m-%d-%H-%M`.zip deploy/windows
|
||||||
deploy-buildfiles:
|
#deploy-buildfiles:
|
||||||
image: appleboy/drone-scp:v1.3.0
|
# image: appleboy/drone-scp:v1.3.0
|
||||||
settings:
|
# settings:
|
||||||
host: openprivacy.ca
|
# host: openprivacy.ca
|
||||||
username: buildfiles
|
# username: buildfiles
|
||||||
key:
|
# key:
|
||||||
from_secret: buildfiles_key
|
# from_secret: buildfiles_key
|
||||||
source:
|
# source:
|
||||||
- deploy/cwtch-*
|
# - deploy/cwtch-*
|
||||||
target:
|
# target:
|
||||||
- /home/buildfiles/buildfiles
|
# - /home/buildfiles/buildfiles
|
||||||
when:
|
# when:
|
||||||
branch: master
|
# branch: master
|
||||||
event: push
|
# event: push
|
||||||
status: [ success ]
|
# status: [ success ]
|
||||||
notify-email:
|
notify-email:
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
host: build.openprivacy.ca
|
host: build.openprivacy.ca
|
||||||
|
|
Reference in New Issue