Skip to content
Snippets Groups Projects
Commit 5d8721b8 authored by Yajia Liu's avatar Yajia Liu
Browse files

Update .gitlab-ci.yml file

parent 12927cea
No related branches found
Tags v0.36 v0.37
2 merge requests!13Yajialiu,!12测试release
Pipeline #63269 canceled
......@@ -44,6 +44,8 @@ package-dev:
rules:
- if: $CI_COMMIT_BRANCH == "master"
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- when: on_success
script:
- echo "start package"
......@@ -87,6 +89,8 @@ deploy-dev: # This job runs in the deploy stage.
rules:
- if: $CI_COMMIT_BRANCH == "master"
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- when: on_success
script:
- echo "Deploying dev application..."
......@@ -96,6 +100,8 @@ deploy-dev: # This job runs in the deploy stage.
deploy-stable: # This job runs in the deploy stage.
stage: deploy-stable # It only runs when *both* jobs in the test stage complete successfully.
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- if: $CI_COMMIT_BRANCH == "master"
when: manual
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment