Loading .gitlab-ci.yml +48 −1 Original line number Diff line number Diff line image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest" variables: APK_PATH: "app-ose/build/outputs/apk/ose/release" UNSIGNED_APK: "davx5-ose-release-unsigned.apk" COMMUNITY_APK: "Account_manager_community.apk" OFFICIAL_APK: "Account_manager_official.apk" TEST_APK: "Account_manager_test.apk" stages: - update-from-upstream - build Loading Loading @@ -31,9 +38,49 @@ buildRelease: stage: build script: - ./gradlew assembleRelease - | if [[ ! -d "$APK_PATH" ]]; then echo "$APK_PATH does not exist." exit 1 fi cd "$APK_PATH" unsigned_build=$(find . -maxdepth 1 -type f -name "*.apk" ! -name "$COMMUNITY_APK" ! -name "$OFFICIAL_APK" ! -name "$TEST_APK" | head -n1) if [[ -z "$unsigned_build" ]]; then echo "No release APK found in $APK_PATH." exit 1 fi mv "$unsigned_build" "$UNSIGNED_APK" artifacts: paths: - $APK_PATH init_submodules: stage: build rules: - if: '$CI_COMMIT_BRANCH' script: - git clone https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo artifacts: paths: - systemAppsUpdateInfo/scripts/ generate-apks: stage: build rules: - if: '$CI_COMMIT_BRANCH' needs: - job: init_submodules - job: buildRelease script: - | ./systemAppsUpdateInfo/scripts/generate-apks.sh \ "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK" artifacts: paths: - app-ose/build/outputs/apk/ose/release - $APK_PATH/$UNSIGNED_APK - $APK_PATH/$COMMUNITY_APK - $APK_PATH/$OFFICIAL_APK - $APK_PATH/$TEST_APK update-from-upstream: stage: update-from-upstream Loading Loading
.gitlab-ci.yml +48 −1 Original line number Diff line number Diff line image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest" variables: APK_PATH: "app-ose/build/outputs/apk/ose/release" UNSIGNED_APK: "davx5-ose-release-unsigned.apk" COMMUNITY_APK: "Account_manager_community.apk" OFFICIAL_APK: "Account_manager_official.apk" TEST_APK: "Account_manager_test.apk" stages: - update-from-upstream - build Loading Loading @@ -31,9 +38,49 @@ buildRelease: stage: build script: - ./gradlew assembleRelease - | if [[ ! -d "$APK_PATH" ]]; then echo "$APK_PATH does not exist." exit 1 fi cd "$APK_PATH" unsigned_build=$(find . -maxdepth 1 -type f -name "*.apk" ! -name "$COMMUNITY_APK" ! -name "$OFFICIAL_APK" ! -name "$TEST_APK" | head -n1) if [[ -z "$unsigned_build" ]]; then echo "No release APK found in $APK_PATH." exit 1 fi mv "$unsigned_build" "$UNSIGNED_APK" artifacts: paths: - $APK_PATH init_submodules: stage: build rules: - if: '$CI_COMMIT_BRANCH' script: - git clone https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo artifacts: paths: - systemAppsUpdateInfo/scripts/ generate-apks: stage: build rules: - if: '$CI_COMMIT_BRANCH' needs: - job: init_submodules - job: buildRelease script: - | ./systemAppsUpdateInfo/scripts/generate-apks.sh \ "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK" artifacts: paths: - app-ose/build/outputs/apk/ose/release - $APK_PATH/$UNSIGNED_APK - $APK_PATH/$COMMUNITY_APK - $APK_PATH/$OFFICIAL_APK - $APK_PATH/$TEST_APK update-from-upstream: stage: update-from-upstream Loading