Commit 0433a4fc authored by Aliaksandr Ramanovich (EPAM)'s avatar Aliaksandr Ramanovich (EPAM)
Browse files

Add clause to disable containerize and deploy stages under unprotected runs

parent d3e3a6ad
Pipeline #4927 passed with stage
in 7 seconds
......@@ -50,6 +50,10 @@ osdu-gcp-containerize:
- gcloud config set project $OSDU_GCP_PROJECT
- touch .gcloudignore
- gcloud builds submit --config provider/$OSDU_GCP_SERVICE-$OSDU_GCP_VENDOR/cloudbuild/cloudbuild.yaml --substitutions=_PROVIDER_NAME=$OSDU_GCP_VENDOR,_SHORT_SHA=$CI_COMMIT_SHORT_SHA,_PORT=$OSDU_GCP_PORT
only:
variables:
- $OSDU_GCP == 'true'
osdu-gcp-deploy:
image: google/cloud-sdk
......@@ -61,3 +65,6 @@ osdu-gcp-deploy:
- gcloud auth activate-service-account --key-file $EPAM_GCP_DEPLOY_FILE # $OSDU_GCP_DEPLOY_FILE
- gcloud config set project $OSDU_GCP_PROJECT
- gcloud beta run deploy $OSDU_GCP_APPLICATION_NAME --image gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_SERVICE-$OSDU_GCP_VENDOR:$CI_COMMIT_SHORT_SHA --platform managed --region $OSDU_GCP_CLOUDRUN_REGION --allow-unauthenticated --service-account $OSDU_GCP_SERVICE_ACCOUNT --memory 512M --set-env-vars=$OSDU_GCP_ENV_VARS
only:
variables:
- $OSDU_GCP == 'true'
\ No newline at end of file
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