Update .gitlab-ci.yml file
This commit is contained in:
parent
c6654d4846
commit
c2d4531e82
1 changed files with 2 additions and 6 deletions
|
|
@ -25,9 +25,7 @@ build_job:
|
|||
image: "reactnativecommunity/react-native-android:latest"
|
||||
stage: build # This job runs in the build stage, which runs first.
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
when: manual
|
||||
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
|
||||
when: manual
|
||||
script:
|
||||
- echo BUILD_JOB_ID=$CI_JOB_ID >> environment.env
|
||||
|
|
@ -55,9 +53,7 @@ release_job:
|
|||
needs:
|
||||
- job: build_job
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
when: on_success
|
||||
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_PROTECTED
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"
|
||||
when: on_success
|
||||
release:
|
||||
tag_name: 'v0.$CI_PIPELINE_IID'
|
||||
|
|
|
|||
Reference in a new issue