Commit 3b3c887e authored by Vladislav Shishko (EPAM)'s avatar Vladislav Shishko (EPAM) Committed by Oleksandr Kosse (EPAM)
Browse files

(GONRG-2375) Update cloud-providers/osdu-gcp-cloudrun.yml

parent 141a395f
......@@ -55,6 +55,7 @@
OSDU_GCP_CRS_CATALOG_HOSTNAME: os-crs-catalog-attcrcktoa-uc.a.run.app
OSDU_GCP_SCHEMA_URL: https://os-schema-attcrcktoa-uc.a.run.app
OSDU_GCP_DATASET_URL: https://os-dataset-attcrcktoa-uc.a.run.app/api/dataset/v1/
OSDU_GCP_LOCAL_IMAGE_TAG_SHA: $CI_REGISTRY_IMAGE/osdu-gcp:$CI_COMMIT_SHORT_SHA
REDIS_GROUP_HOST: 10.234.198.27
REDIS_SEARCH_HOST: 10.99.138.107
REDIS_STORAGE_HOST: 10.16.59.203
......@@ -145,7 +146,7 @@
# variables for backup tests
BACKUP_SERVICE_HOST: $OSDU_GCP_BACKUP_HOST
osdu-gcp-containerize:
osdu-gcp-containerize-gcloud:
stage: containerize
needs: ["compile-and-unit-test"]
extends: .osdu-gcp-variables
......@@ -160,9 +161,24 @@ osdu-gcp-containerize:
variables:
- $OSDU_GCP == 'true'
osdu-gcp-containerize-gitlab:
stage: containerize
needs: ["compile-and-unit-test"]
extends: .osdu-gcp-variables
image: gcr.io/google.com/cloudsdktool/cloud-sdk
cache: {}
script:
- export EXTRA_DOCKER_TAG=""; if [ "$CI_COMMIT_TAG" != "" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp:$CI_COMMIT_TAG" ; elif [ "$CI_COMMIT_REF_NAME" = "master" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp:latest" ; fi
- docker build -t $OSDU_GCP_LOCAL_IMAGE_TAG_SHA $EXTRA_DOCKER_TAG --file provider/$OSDU_GCP_SERVICE-$OSDU_GCP_VENDOR/cloudbuild/Dockerfile.cloudbuild --build-arg PROVIDER_NAME=$OSDU_GCP_VENDOR --build-arg PORT=$OSDU_GCP_PORT .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $OSDU_GCP_LOCAL_IMAGE_TAG_SHA $EXTRA_DOCKER_TAG
only:
variables:
- $OSDU_GCP == 'true'
osdu-gcp-deploy:
image: gcr.io/google.com/cloudsdktool/cloud-sdk
needs: ["osdu-gcp-containerize"]
needs: ["osdu-gcp-containerize-gcloud"]
stage: deploy
extends: .osdu-gcp-variables
cache: {}
......
Markdown is supported
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