mirror of
https://github.com/gitnex-org/gitnex.git
synced 2026-07-15 21:25:46 -05:00
Merge branch 'main' into ui-enhancements-and-refactors
This commit is contained in:
@@ -18,7 +18,7 @@ on_setup:
|
||||
- ./scripts/add-commit-status.sh
|
||||
|
||||
build:
|
||||
image: nextcloudci/android8:android-61
|
||||
image: alvrme/alpine-android:android-31-jdk11
|
||||
stage: build
|
||||
only:
|
||||
- main
|
||||
@@ -31,7 +31,7 @@ build:
|
||||
expire_in: 15 minutes
|
||||
|
||||
sign:
|
||||
image: nextcloudci/android8:android-61
|
||||
image: alvrme/alpine-android:android-31-jdk11
|
||||
stage: sign
|
||||
only:
|
||||
- main
|
||||
|
||||
@@ -9,11 +9,7 @@
|
||||
[ -z "${KS_FILE}" ] && { echo "Filename of keystore is missing (KS_FILE)"; exit 1; }
|
||||
[ -z "${OUTPUT}" ] && { echo "Missing filename of signed output (OUTPUT)"; exit 1; }
|
||||
|
||||
# Update the docker container. curl is an outdated version which has to be updated.
|
||||
apt update
|
||||
apt upgrade curl -y
|
||||
|
||||
KEYFILE=$(mktemp)
|
||||
curl -X GET "${INSTANCE}/api/v1/repos/${KS_REPO}/contents/${KS_FILE}?token=${BOT_TOKEN}" -H "accept: application/json" | sed 's|"content":"|#|g' | cut -d '#' -f 2 | cut -d '"' -f 1 | base64 -d > ${KEYFILE}
|
||||
|
||||
/opt/android-sdk-linux/build-tools/*/apksigner sign -v --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias GitNexBot --ks ${KEYFILE} --out signed.apk $(find . -name "*release*.apk")
|
||||
apksigner sign -v --ks-pass pass:$KS_PASS --key-pass pass:$KEY_PASS --ks-key-alias GitNexBot --ks ${KEYFILE} --out signed.apk $(find . -name "*release*.apk")
|
||||
|
||||
Reference in New Issue
Block a user