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

Fix OSDU vars

parent 39c6dd18
Pipeline #4870 passed with stage
in 7 seconds
......@@ -17,26 +17,26 @@
.osdu-gcp-variables:
variables:
# service accounts
OSDU_SERVICE_ACCOUNT: osdu-gcp-sa@nice-etching-277309.iam.gserviceaccount.com
OSDU_INTEGRATION_TESTER: $OSDU_GCP_INTEGRATION_TESTER # $OSDU_GCP_INTEGRATION_TESTER
OSDU_NO_DATA_ACCESS_TESTER: $EPAM_GCP_NO_DATA_ACCESS_TESTER # $OSDU_GCP_NO_DATA_ACCESS_TESTER
OSDU_GCP_SERVICE_ACCOUNT: osdu-gcp-sa@nice-etching-277309.iam.gserviceaccount.com
OSDU_GCP_INTEGRATION_TESTER: $OSDU_GCP_INTEGRATION_TESTER # $OSDU_GCP_INTEGRATION_TESTER
OSDU_GCP_NO_DATA_ACCESS_TESTER: $EPAM_GCP_NO_DATA_ACCESS_TESTER # $OSDU_GCP_NO_DATA_ACCESS_TESTER
#services' urls
OSDU_STORAGE_URL: https://os-storage-dot-nice-etching-277309.uc.r.appspot.com/api/storage/v2/
OSDU_AUTHORIZE_API: https://os-entitlements-gcp-attcrcktoa-uc.a.run.app/entitlements/v1/
OSDU_ENTITLEMENTS_URL: https://os-entitlements-gcp-attcrcktoa-uc.a.run.app/entitlements/v1/
OSDU_LEGAL_HOST_URL: https://os-legal-dot-nice-etching-277309.uc.r.appspot.com/api/legal/v1/
OSDU_AIRFLOW_URL: https://c410714dc037b0e02p-tp.appspot.com
OSDU_DELIVERY_SERVICE_URL: https://os-file-attcrcktoa-uc.a.run.app
OSDU_GCP_STORAGE_URL: https://os-storage-dot-nice-etching-277309.uc.r.appspot.com/api/storage/v2/
OSDU_GCP_AUTHORIZE_API: https://os-entitlements-gcp-attcrcktoa-uc.a.run.app/entitlements/v1/
OSDU_GCP_ENTITLEMENTS_URL: https://os-entitlements-gcp-attcrcktoa-uc.a.run.app/entitlements/v1/
OSDU_GCP_LEGAL_HOST_URL: https://os-legal-dot-nice-etching-277309.uc.r.appspot.com/api/legal/v1/
OSDU_GCP_AIRFLOW_URL: https://c410714dc037b0e02p-tp.appspot.com
OSDU_GCP_DELIVERY_SERVICE_URL: https://os-file-attcrcktoa-uc.a.run.app
# env parameters
OSDU_INTEGRATION_TEST_AUDIENCE: 689762842995-pv217jo3k8j803kk6gqf52qb5amos3a9.apps.googleusercontent.com
OSDU_DEPLOY_ENV: dev
OSDU_DOMAIN: osdu-gcp.go3-nrg.projects.epam.com
OSDU_TENANT_NAME: osdu
OSDU_MY_TENANT_PROJECT: osdu
OSDU_MY_TENANT: osdu
OSDU_CLOUDRUN_REGION: us-central1
OSDU_PROJECT: nice-etching-277309
OSDU_VPC_CONNECTOR: osdu-connector
OSDU_GCP_INTEGRATION_TEST_AUDIENCE: 689762842995-pv217jo3k8j803kk6gqf52qb5amos3a9.apps.googleusercontent.com
OSDU_GCP_DEPLOY_ENV: dev
OSDU_GCP_DOMAIN: osdu-gcp.go3-nrg.projects.epam.com
OSDU_GCP_TENANT_NAME: osdu
OSDU_GCP_MY_TENANT_PROJECT: osdu
OSDU_GCP_MY_TENANT: osdu
OSDU_GCP_CLOUDRUN_REGION: us-central1
OSDU_GCP_PROJECT: nice-etching-277309
OSDU_GCP_VPC_CONNECTOR: osdu-connector
osdu-gcp-containerize:
......@@ -47,9 +47,9 @@ osdu-gcp-containerize:
cache: {}
script:
- gcloud auth activate-service-account --key-file $EPAM_GCP_DEPLOY_FILE # $OSDU_GCP_DEPLOY_FILE
- gcloud config set project $OSDU_PROJECT
- gcloud config set project $OSDU_GCP_PROJECT
- touch .gcloudignore
- gcloud builds submit --config provider/$OSDU_SERVICE-$OSDU_VENDOR/cloudbuild/cloudbuild.yaml --substitutions=_PROVIDER_NAME=$OSDU_VENDOR,_SHORT_SHA=$CI_COMMIT_SHORT_SHA,_PORT=$OSDU_PORT
- 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
osdu-gcp-deploy:
image: google/cloud-sdk
......@@ -59,5 +59,5 @@ osdu-gcp-deploy:
cache: {}
script:
- gcloud auth activate-service-account --key-file $EPAM_GCP_DEPLOY_FILE # $OSDU_GCP_DEPLOY_FILE
- gcloud config set project $OSDU_PROJECT
- gcloud beta run deploy $OSDU_APPLICATION_NAME --image gcr.io/$OSDU_PROJECT/$OSDU_APPLICATION_NAME/$OSDU_SERVICE-$OSDU_VENDOR:$CI_COMMIT_SHORT_SHA --platform managed --region $OSDU_CLOUDRUN_REGION --allow-unauthenticated --service-account $OSDU_SERVICE_ACCOUNT --memory 512M --set-env-vars=$OSDU_ENV_VARS
- 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
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