Skip to content
Snippets Groups Projects
Commit a22119b2 authored by Yurii Pelykh [EPAM / GCP]'s avatar Yurii Pelykh [EPAM / GCP]
Browse files

GONRG-6588: Common script

parent 3984195d
No related branches found
No related tags found
1 merge request!214GONRG-6588: Manual job that deploy services to preship for release pipeline
Pipeline #172069 failed
......@@ -41,27 +41,30 @@ stages:
include:
- project: "osdu/platform/ci-cd-pipelines"
file: "standard-setup.yml"
ref: "GONRG-6588_job_that_deploy_services_to_preship_for_release_pipeline"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/gc-dag.yaml"
ref: "GONRG-6588_job_that_deploy_services_to_preship_for_release_pipeline"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/gc-containerize.yml"
ref: "GONRG-6588_job_that_deploy_services_to_preship_for_release_pipeline"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/azure_dag.yml"
#- project: "osdu/platform/ci-cd-pipelines"
# file: "cloud-providers/azure_dag.yml"
- local: "/devops/gc/pipeline/override-stages.yml"
- local: "/devops/azure/override-stages.yml"
#- local: "/devops/azure/override-stages.yml"
# Disable this step until it is fixed
# - local: "/devops/ibm/ibm-stages.yml"
- local: "/devops/build-sdk/build-segysdk.yml"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/aws-global-variables.yml"
#- project: "osdu/platform/ci-cd-pipelines"
# file: "cloud-providers/aws-global-variables.yml"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/aws-dag.yml"
#- project: "osdu/platform/ci-cd-pipelines"
# file: "cloud-providers/aws-dag.yml"
......@@ -8,6 +8,17 @@ variables:
# Postman tests
COLLECTION_PATH: "Postman%20Collection/42_CICD_SEGY_ZGY_Conversion/SegyToZgyConversion%20Workflow%20using%20SeisStore%20R3%20CI-CD%20v1.0.postman_collection.json"
.set-composer-tag:
before_script:
- >
if echo $CI_COMMIT_REF_NAME | grep -Eq "^release\/[0-9]{1,2}.[0-9]{1,2}$";
then
export GC_COMPOSER_TAG=$CI_REGISTRY_IMAGE/gc-$GC_SERVICE-release:$CI_COMMIT_SHORT_SHA
else
export GC_COMPOSER_TAG=$CI_REGISTRY_IMAGE/gc-$GC_SERVICE:${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
fi;
- echo $GC_COMPOSER_TAG
gc-containerize-gitlab:
needs: ["build-python-ubuntu"]
tags: ["osdu-medium"]
......@@ -37,22 +48,8 @@ gc-deploy-dag:anthos:
gc-deploy-dag:dev2:
before_script:
- >
if echo $CI_COMMIT_REF_NAME | grep -Eq "^release\/[0-9]{1,2}.[0-9]{1,2}$";
then
export GC_COMPOSER_TAG=$CI_REGISTRY_IMAGE/gc-$GC_SERVICE-release:$CI_COMMIT_SHORT_SHA
else
export GC_COMPOSER_TAG=$CI_REGISTRY_IMAGE/gc-$GC_SERVICE:${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
fi;
- echo $GC_COMPOSER_TAG
- !reference [.set-composer-tag, before_script]
gc-deploy-dag:preship:
before_script:
- >
if echo $CI_COMMIT_REF_NAME | grep -Eq "^release\/[0-9]{1,2}.[0-9]{1,2}$";
then
export GC_COMPOSER_TAG=$CI_REGISTRY_IMAGE/gc-$GC_SERVICE-release:$CI_COMMIT_SHORT_SHA
else
export GC_COMPOSER_TAG=$CI_REGISTRY_IMAGE/gc-$GC_SERVICE:${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA}
fi;
- echo $GC_COMPOSER_TAG
- !reference [.set-composer-tag, before_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