Don't exit 1 in upload releases script
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
03ffed9b25
commit
1dbd4b7ffc
11
.drone.yml
11
.drone.yml
|
@ -118,7 +118,7 @@ steps:
|
||||||
image: openpriv/drone-gogs
|
image: openpriv/drone-gogs
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
environment:
|
environment:
|
||||||
BUILDFILES_KEY:ls
|
BUILDFILES_KEY:
|
||||||
from_secret: buildfiles_key
|
from_secret: buildfiles_key
|
||||||
secrets: [gogs_account_token]
|
secrets: [gogs_account_token]
|
||||||
when:
|
when:
|
||||||
|
@ -128,6 +128,9 @@ 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
|
||||||
|
@ -137,12 +140,6 @@ 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/
|
||||||
- cd /drone/src/
|
|
||||||
- ls -l
|
|
||||||
- ./gen-nightly-index.sh $DIR
|
|
||||||
- scp -r -o StrictHostKeyChecking=no -i ~/id_rsa cwtch-nightly.html buildfiles@build.openprivacy.ca:/home/buildfiles/buildfiles/
|
|
||||||
# Upload Files to releases...if a release has been cut...
|
|
||||||
- ./uploaded-releases.sh deploy/cwtch-`cat VERSION`.apk application/vnd.android.package-archive
|
|
||||||
|
|
||||||
- name: notify-gogs
|
- name: notify-gogs
|
||||||
image: openpriv/drone-gogs
|
image: openpriv/drone-gogs
|
||||||
|
|
|
@ -6,7 +6,7 @@ RELEASEID=$(curl -s -X 'GET' "https://git.openprivacy.ca/api/v1/repos/$DRONE_REP
|
||||||
echo $RELEASEID
|
echo $RELEASEID
|
||||||
if [ "$RELEASEID" = "null" ]; then
|
if [ "$RELEASEID" = "null" ]; then
|
||||||
# $var is empty
|
# $var is empty
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,5 +20,5 @@ then
|
||||||
echo "Success posting to $URL"
|
echo "Success posting to $URL"
|
||||||
else
|
else
|
||||||
echo "ERROR HTTP $RESULT posting to $URL"
|
echo "ERROR HTTP $RESULT posting to $URL"
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue