Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a6b6e92 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

ci: introduce ai review

parent 71ada9fd
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:master"

workflow:
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
      when: never
    - if: '$CI_COMMIT_BRANCH'
    - if: '$CI_COMMIT_TAG'
    - if: '$CI_PIPELINE_SOURCE == "schedule"'

variables:
  PROJECT_ID: "83" # under Settings -> General
  APK_PATH: "app/build/outputs/apk/ose/release"
@@ -12,12 +21,16 @@ stages:
  - auto-merge-main
  - update-from-upstream
  - build
  - ai-review
  - gitlab_release

include:
  - project: "e/templates"
    ref: main
    file: "/.gitlab/gitlab-ci/gitlab-ci-auto-merge-main.yml"
  - project: "e/os/ai-review"
    ref: main
    file: ".gitlab-ci.yml"

auto_merge_main:
  extends: .auto-merge-main
@@ -75,6 +88,8 @@ init_submodules:

generate-apks:
  stage: gitlab_release
  rules:
    - if: '$CI_COMMIT_REF_PROTECTED == "true"'
  needs:
    - job: init_submodules
    - job: build