diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 391c830d..e44e448b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ build: expire_in: 15 minutes sign: - image: nextcloudci/android:android-54 + image: nextcloudci/android8:android-61 stage: sign only: - main diff --git a/scripts/sign-build.sh b/scripts/sign-build.sh index 2b8b3304..e2931a82 100755 --- a/scripts/sign-build.sh +++ b/scripts/sign-build.sh @@ -9,6 +9,10 @@ [ -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 + 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}