attempt to deploy files
This commit is contained in:
parent
e3c52e916f
commit
a7c769b49f
51
.drone.yml
51
.drone.yml
|
@ -16,23 +16,40 @@ pipeline:
|
|||
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git
|
||||
- go get -d
|
||||
- qtdeploy build linux
|
||||
build-android:
|
||||
mem_limit: 3G
|
||||
image: therecipe/qt:android
|
||||
environment:
|
||||
- QT_DIR=/opt/Qt
|
||||
- QT_DOCKER='true'
|
||||
- QT_API=5.12.0
|
||||
- ANDROID_NDK_DIR=/home/user/android-ndk-r18b
|
||||
- ANDROID_SDK_DIR=/home/user/android-sdk-linux
|
||||
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
|
||||
- find -iname 'moc*' | xargs rm
|
||||
- find -iname 'rcc*' | xargs rm
|
||||
- go get -d
|
||||
- qtdeploy build android
|
||||
- tar -czf deploy/cwtch-linux-`date +%G-%m-%d-%H-%M`.tar.gz deploy/linux
|
||||
# build-android:
|
||||
# mem_limit: 3G
|
||||
# image: therecipe/qt:android
|
||||
# environment:
|
||||
# - QT_DIR=/opt/Qt
|
||||
# - QT_DOCKER='true'
|
||||
# - QT_API=5.12.0
|
||||
# - ANDROID_NDK_DIR=/home/user/android-ndk-r18b
|
||||
# - ANDROID_SDK_DIR=/home/user/android-sdk-linux
|
||||
# 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 zip
|
||||
# - find -iname 'moc*' | xargs rm
|
||||
# - find -iname 'rcc*' | xargs rm
|
||||
# - 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 ]
|
||||
notify-email:
|
||||
image: drillster/drone-email
|
||||
host: build.openprivacy.ca
|
||||
|
|
Reference in New Issue