summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-07-11 07:09:26 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-07-11 07:09:26 +0000
commit65b90f54ed85d2f00593cf040e07780b4296f3b9 (patch)
tree624ba9aba22007e684e07571b1c425abefab4f45 /.gitlab-ci.yml
parentcfe05c302a80ba5924b879c746419ebfe54580c8 (diff)
parentc58614d7ccea3462b62c51bfb7f547af2cc7fbcd (diff)
Merge branch '2-chore_release_build_only_on_tags_eOS' into 'main'
chore: build release only on tags starting with eOS- See merge request e/os/advanced-privacy!138
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 6 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d9574df..d7374aa 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,6 +77,8 @@ test-debug:
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
+ - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"'
+ when: always
- if: '$CI_COMMIT_BRANCH == "main"'
when: never
- if: '$CI_COMMIT_REF_PROTECTED == "true"'
@@ -88,22 +90,14 @@ test-debug:
paths:
- ./**/build/reports/tests/testDebugUnitTest
-build-full:
+build-e-release:
stage: build
script:
- - ./gradlew :app:assembleRelease
+ - ./gradlew :app:assembleERelease
rules:
- - if: '$CI_PIPELINE_SOURCE == "schedule"'
- when: never
- - if: '$CI_COMMIT_BRANCH == "main"'
+ - if: '$CI_COMMIT_REF_PROTECTED == "true" && $CI_BUILD_TAG =~ /^eOS-/'
variables:
- MAPBOX_KEY: $MAPBOX_KEY_PROD
- when: always
- - if: '$CI_COMMIT_REF_PROTECTED == "true"'
- variables:
- MAPBOX_KEY: $MAPBOX_KEY_PROD
- when: always
- - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"'
+ MAPBOX_KEY: $MAPBOX_KEY_PROD
when: always
- when: never
artifacts: