Update .gitlab-ci.yml file
This commit is contained in:
parent
fd49d2301f
commit
03cf465f98
1 changed files with 6 additions and 6 deletions
|
|
@ -24,9 +24,9 @@ stages: # List of stages for jobs, and their order of execution
|
||||||
build_job:
|
build_job:
|
||||||
image: "reactnativecommunity/react-native-android:latest"
|
image: "reactnativecommunity/react-native-android:latest"
|
||||||
stage: build # This job runs in the build stage, which runs first.
|
stage: build # This job runs in the build stage, which runs first.
|
||||||
rules:
|
# rules:
|
||||||
- if: $COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
|
# - if: $COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
|
||||||
when: manual
|
# when: manual
|
||||||
script:
|
script:
|
||||||
- echo BUILD_JOB_ID=$CI_JOB_ID >> environment.env
|
- echo BUILD_JOB_ID=$CI_JOB_ID >> environment.env
|
||||||
- yarn add expo
|
- yarn add expo
|
||||||
|
|
@ -52,9 +52,9 @@ release_job:
|
||||||
image: "registry.gitlab.com/gitlab-org/release-cli:latest"
|
image: "registry.gitlab.com/gitlab-org/release-cli:latest"
|
||||||
needs:
|
needs:
|
||||||
- job: build_job
|
- job: build_job
|
||||||
rules:
|
# rules:
|
||||||
- if: $COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
|
# - if: $COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
|
||||||
when: manual
|
# when: manual
|
||||||
release:
|
release:
|
||||||
tag_name: 'v0.$CI_PIPELINE_IID'
|
tag_name: 'v0.$CI_PIPELINE_IID'
|
||||||
description: 'v0.$CI_PIPELINE_IID create by pipeline'
|
description: 'v0.$CI_PIPELINE_IID create by pipeline'
|
||||||
|
|
|
||||||
Reference in a new issue