attempt to deploy files

This commit is contained in:
Dan Ballard 2019-02-26 15:25:33 -08:00
parent e3c52e916f
commit a7c769b49f
1 changed files with 34 additions and 17 deletions

View File

@ -16,23 +16,40 @@ pipeline:
- 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
- go get -d - go get -d
- qtdeploy build linux - qtdeploy build linux
build-android: - tar -czf deploy/cwtch-linux-`date +%G-%m-%d-%H-%M`.tar.gz deploy/linux
mem_limit: 3G # build-android:
image: therecipe/qt:android # mem_limit: 3G
environment: # image: therecipe/qt:android
- QT_DIR=/opt/Qt # environment:
- QT_DOCKER='true' # - QT_DIR=/opt/Qt
- QT_API=5.12.0 # - QT_DOCKER='true'
- ANDROID_NDK_DIR=/home/user/android-ndk-r18b # - QT_API=5.12.0
- ANDROID_SDK_DIR=/home/user/android-sdk-linux # - ANDROID_NDK_DIR=/home/user/android-ndk-r18b
commands: # - ANDROID_SDK_DIR=/home/user/android-sdk-linux
- export GOPATH=$GOPATH:/media/sf_GOPATH1/ # commands:
- export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin # - export GOPATH=$GOPATH:/media/sf_GOPATH1/
- apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git # - export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
- find -iname 'moc*' | xargs rm # - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git zip
- find -iname 'rcc*' | xargs rm # - find -iname 'moc*' | xargs rm
- go get -d # - find -iname 'rcc*' | xargs rm
- qtdeploy build android # - 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: notify-email:
image: drillster/drone-email image: drillster/drone-email
host: build.openprivacy.ca host: build.openprivacy.ca