Merge pull request 'Add new upload-nightlies step' (#851) from android_foreground_fix into trunk
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Reviewed-on: #851 Reviewed-by: Dan Ballard <dan@openprivacy.ca>
This commit is contained in:
commit
213ed00373
27
.drone.yml
27
.drone.yml
|
@ -114,8 +114,28 @@ steps:
|
||||||
- flutter test --coverage
|
- flutter test --coverage
|
||||||
- genhtml coverage/lcov.info -o coverage/html
|
- genhtml coverage/lcov.info -o coverage/html
|
||||||
|
|
||||||
|
- name: upload-nightlies
|
||||||
|
image: openpriv/flutter-desktop:linux-fstable-3.13.4
|
||||||
|
environment:
|
||||||
|
BUILDFILES_KEY:
|
||||||
|
from_secret: buildfiles_key
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /root/.pub-cache
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
status: [ success ]
|
||||||
|
commands:
|
||||||
|
- echo $BUILDFILES_KEY > ~/id_rsab64
|
||||||
|
- base64 -d ~/id_rsab64 > ~/id_rsa
|
||||||
|
- chmod 400 ~/id_rsa
|
||||||
|
# TODO When we update Flutter Container to 3.19 migrate these calls...
|
||||||
|
- apt update
|
||||||
|
- apt install -y jq openssh-client ca-certificates curl
|
||||||
|
- ./uploaded-releases.sh deploy/cwtch-`cat VERSION`.apk application/vnd.android.package-archive
|
||||||
|
|
||||||
- name: deploy-buildfiles
|
- name: deploy-buildfiles
|
||||||
image: openpriv/drone-gogs
|
image: kroniak/ssh-client
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
environment:
|
environment:
|
||||||
BUILDFILES_KEY:
|
BUILDFILES_KEY:
|
||||||
|
@ -128,9 +148,6 @@ steps:
|
||||||
- echo $BUILDFILES_KEY > ~/id_rsab64
|
- echo $BUILDFILES_KEY > ~/id_rsab64
|
||||||
- base64 -d ~/id_rsab64 > ~/id_rsa
|
- base64 -d ~/id_rsab64 > ~/id_rsa
|
||||||
- chmod 400 ~/id_rsa
|
- chmod 400 ~/id_rsa
|
||||||
- ./gen-nightly-index.sh $DIR
|
|
||||||
- scp -r -o StrictHostKeyChecking=no -i ~/id_rsa cwtch-nightly.html buildfiles@build.openprivacy.ca:/home/buildfiles/buildfiles/
|
|
||||||
- ./uploaded-releases.sh deploy/cwtch-`cat VERSION`.apk application/vnd.android.package-archive
|
|
||||||
- export DIR=flwtch-`cat COMMIT_DATE`-`cat VERSION`
|
- export DIR=flwtch-`cat COMMIT_DATE`-`cat VERSION`
|
||||||
- mv deploy $DIR
|
- mv deploy $DIR
|
||||||
- cp -r coverage/html $DIR/coverage-tests
|
- cp -r coverage/html $DIR/coverage-tests
|
||||||
|
@ -140,6 +157,8 @@ steps:
|
||||||
- mv ./../sha512s.txt .
|
- mv ./../sha512s.txt .
|
||||||
- cd ..
|
- cd ..
|
||||||
- scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@build.openprivacy.ca:/home/buildfiles/buildfiles/
|
- scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@build.openprivacy.ca:/home/buildfiles/buildfiles/
|
||||||
|
- ./gen-nightly-index.sh $DIR
|
||||||
|
- scp -r -o StrictHostKeyChecking=no -i ~/id_rsa cwtch-nightly.html buildfiles@build.openprivacy.ca:/home/buildfiles/buildfiles/
|
||||||
|
|
||||||
- name: notify-gogs
|
- name: notify-gogs
|
||||||
image: openpriv/drone-gogs
|
image: openpriv/drone-gogs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION=$(cat VERSION)
|
VERSION=$(cat VERSION)
|
||||||
echo "Grabbing Release Data From:" "https://git.openprivacy.ca/api/v1/repos/$DRONE_REPO/releases/tags/$VERSION"
|
echo "Grabbing Release Data From:" "https://git.openprivacy.ca/api/v1/repos/$DRONE_REPO/releases/tags/$VERSION"
|
||||||
|
|
Loading…
Reference in New Issue