Commit 17fdf6bf authored by Cresson Remi's avatar Cresson Remi
Browse files

ADD: deploy when commit to develop

2 merge requests!39Release 3.2,!36ADD: deploy when commit to develop
Pipeline #35936 passed with stages
in 90 minutes and 53 seconds
Showing with 5 additions and 6 deletions
+5 -6
...@@ -13,8 +13,8 @@ variables: ...@@ -13,8 +13,8 @@ variables:
workflow: workflow:
rules: rules:
- if: $CI_MERGE_REQUEST_ID # Execute jobs in merge request context - if: $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME =~ /develop/ # Execute jobs in merge request context, or commit in develop branch
stages: stages:
- Build - Build
- Static Analysis - Static Analysis
...@@ -147,11 +147,10 @@ sr4rs: ...@@ -147,11 +147,10 @@ sr4rs:
- export PYTHONPATH=$PYTHONPATH:$PWD/sr4rs - export PYTHONPATH=$PYTHONPATH:$PWD/sr4rs
- python -m pytest --junitxml=$ARTIFACT_TEST_DIR/report_sr4rs.xml $OTBTF_SRC/test/sr4rs_unittest.py - python -m pytest --junitxml=$ARTIFACT_TEST_DIR/report_sr4rs.xml $OTBTF_SRC/test/sr4rs_unittest.py
buildall: deploy:
stage: Ship stage: Ship
rules: only:
- if: $CI_COMMIT_BRANCH == 'master' && $CI_PIPELINE_SOURCE == 'merge_request_event' - develop
- if: $CI_COMMIT_BRANCH == 'develop' && $CI_PIPELINE_SOURCE == 'merge_request_event'
script: script:
- echo "Shippping!" - echo "Shippping!"
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment