Commit 4c919113 authored by Dmitriy Rudko's avatar Dmitriy Rudko 💬
Browse files

Update variables with OSDU_GCP prefix in move some of them to Global Protected...

Update variables with OSDU_GCP prefix in move some of them to Global Protected in osdu-gcp-cloudrun.yml
parent 3f941db4
Pipeline #5510 passed with stage
in 7 seconds
......@@ -14,12 +14,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Global Protected Variables:
#
# OSDU_GCP
# OSDU_GCP_DEPLOY_FILE
# OSDU_GCP_SERVICE_ACCOUNT
# OSDU_GCP_INTEGRATION_TESTER
# OSDU_GCP_NO_DATA_ACCESS_TESTER
.osdu-gcp-variables:
variables:
# service accounts
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_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/
......@@ -46,7 +50,7 @@ osdu-gcp-containerize:
image: google/cloud-sdk
cache: {}
script:
- gcloud auth activate-service-account --key-file $EPAM_GCP_DEPLOY_FILE # $OSDU_GCP_DEPLOY_FILE
- gcloud auth activate-service-account --key-file $OSDU_GCP_DEPLOY_FILE
- 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
......@@ -62,7 +66,7 @@ osdu-gcp-deploy:
extends: .osdu-gcp-variables
cache: {}
script:
- gcloud auth activate-service-account --key-file $EPAM_GCP_DEPLOY_FILE # $OSDU_GCP_DEPLOY_FILE
- gcloud auth activate-service-account --key-file $OSDU_GCP_DEPLOY_FILE
- gcloud config set project $OSDU_GCP_PROJECT
- gcloud 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:
......
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