Skip to content
Snippets Groups Projects
Commit 9513b98f authored by Andres Anaya Amariels's avatar Andres Anaya Amariels :rocket:
Browse files

staging_post_mr

parent 4230cc32
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ variables: ...@@ -33,6 +33,7 @@ variables:
- shell - shell
rules: rules:
- if: '$CI_COMMIT_REF_NAME == "staging"' - if: '$CI_COMMIT_REF_NAME == "staging"'
when: always
.dev_common: &dev_common .dev_common: &dev_common
tags: tags:
...@@ -119,7 +120,7 @@ deploy_ocf_oficial_staging: ...@@ -119,7 +120,7 @@ deploy_ocf_oficial_staging:
stage: deploy_ocf_oficial_staging stage: deploy_ocf_oficial_staging
needs: needs:
- staging_build_and_push_mr - staging_build_and_push_mr
<<: *staging_common <<: *staging_post_mr
environment: environment:
name: review/oficial-staging name: review/oficial-staging
url: https://capif-staging.$DOMAIN_STAGING url: https://capif-staging.$DOMAIN_STAGING
......
...@@ -19,12 +19,14 @@ variables: ...@@ -19,12 +19,14 @@ variables:
.staging_common: &staging_common .staging_common: &staging_common
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "staging"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "staging"'
when: always
tags: tags:
- shell - shell
.staging_mr: &staging_mr .staging_mr: &staging_mr
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME == "staging"' - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME == "staging"'
when: always
tags: tags:
- shell - shell
...@@ -40,12 +42,6 @@ variables: ...@@ -40,12 +42,6 @@ variables:
tags: tags:
- docker-in-docker - docker-in-docker
#staging_pulling_repo:
# stage: staging_pulling_repo
# script:
# - git clone https://oauth2:${CI_JOB_TOKEN}@labs.etsi.org/rep/ocf/capif.git
# <<: *staging_common
#staging_cancel_previous_action: #staging_cancel_previous_action:
# stage: staging_pre_pipeline # stage: staging_pre_pipeline
# script: # 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