mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
Use another docker image (#1103)
Try to fix our issues with gitlab ci. # DISCLAIMER I don't really know if this will work. I pulled the image locally and ran it, `apksigner` is available, `./gradlew assembleFreeRelease` runs without issues, but I don't know if this will behave differently on gitlab. However, this took a long time to run because it is installing an emulator and sdk tools, don't know why. Co-authored-by: qwerty287 <ndev@web.de> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1103 Reviewed-by: M M Arif <mmarif@noreply.codeberg.org> Co-authored-by: qwerty287 <qwerty287@noreply.codeberg.org> Co-committed-by: qwerty287 <qwerty287@noreply.codeberg.org>
This commit is contained in:
parent
5c0950d287
commit
42f6611585
@ -18,7 +18,7 @@ on_setup:
|
|||||||
- ./scripts/add-commit-status.sh
|
- ./scripts/add-commit-status.sh
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: nextcloudci/android8:android-61
|
image: alvrme/alpine-android:android-31-jdk11
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
@ -31,7 +31,7 @@ build:
|
|||||||
expire_in: 15 minutes
|
expire_in: 15 minutes
|
||||||
|
|
||||||
sign:
|
sign:
|
||||||
image: nextcloudci/android8:android-61
|
image: alvrme/alpine-android:android-31-jdk11
|
||||||
stage: sign
|
stage: sign
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
@ -9,11 +9,7 @@
|
|||||||
[ -z "${KS_FILE}" ] && { echo "Filename of keystore is missing (KS_FILE)"; exit 1; }
|
[ -z "${KS_FILE}" ] && { echo "Filename of keystore is missing (KS_FILE)"; exit 1; }
|
||||||
[ -z "${OUTPUT}" ] && { echo "Missing filename of signed output (OUTPUT)"; 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)
|
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}
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user