Commit 951d949a authored by Yauheni  Rykhter (EPAM)'s avatar Yauheni Rykhter (EPAM)
Browse files

Merge branch 'master' of...

Merge branch 'master' of https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-gcp-provisioning into GONRG-3792-Rename-SQL-instance
parents 765d1f04 37a568f0
Pipeline #77998 passed with stage
in 1 minute and 19 seconds
......@@ -49,3 +49,6 @@ include:
# Pipeline to deploy services to preshipping environment on GKE
- local: "prod-deploy/gke-release-pipeline/gke-release-pipeline.yml"
# Pipeline to deploy services to dev2 environment on GKE
- local: "dev2/dev2.yaml"
......@@ -39,12 +39,12 @@
},
{
"key": "BACKUP_HOST",
"value": "{BACKUP_URL}/api/backup/v1",
"value": "{GKE_BASE_URL}/api/backup/v1",
"enabled": true
},
{
"key": "SEISMICDMS_HOST",
"value": "{SEISMIC-STORE_URL}/api/v3",
"value": "{GKE_BASE_URL}/api/v3",
"enabled": true
},
{
......@@ -54,7 +54,7 @@
},
{
"key": "CRS_CONVERSION_HOST",
"value": "{CRS-CONVERTER_URL}/api/crs/converter/v2",
"value": "{GKE_BASE_URL}/api/crs/converter/v2",
"enabled": true
},
{
......@@ -89,12 +89,12 @@
},
{
"key": "WORKFLOW_HOST",
"value": "{WORKFLOW_URL}/api/workflow/v1",
"value": "{GKE_BASE_URL}/api/workflow/v1",
"enabled": true
},
{
"key": "WORKFLOW_URL",
"value": "{WORKFLOW_URL}/api/workflow/v1",
"value": "{GKE_BASE_URL}/api/workflow/v1",
"enabled": true
},
{
......@@ -114,7 +114,7 @@
},
{
"key": "DATASET_HOST",
"value": "{DATASET_URL}/api/dataset/v1",
"value": "{GKE_BASE_URL}/api/dataset/v1",
"enabled": true
},
{
......@@ -129,7 +129,7 @@
},
{
"key": "SCHEMA_HOST",
"value": "{SCHEMA_URL}",
"value": "{GKE_BASE_URL}",
"enabled": true
},
{
......
to update DEV2 environment run:
```
CI\CD -> Pipelines -> Run Pipeline
branch: master
variable: DEV2_RELEASE_TAG
example value v0.12.0
```
gke-dev2-deploy:
image: google/cloud-sdk
stage: dev2_deploy
script:
- export TAG=${DEV2_RELEASE_TAG}
- gcloud auth activate-service-account --key-file $OSDU_GCP_DEV2_DEPLOY_FILE
- gcloud config set project $OSDU_GCP_DEV2_PROJECT
- gcloud container clusters get-credentials $OSDU_GCP_DEV2_CLUSTER --zone $OSDU_GCP_DEV2_ZONE --project $OSDU_GCP_DEV2_PROJECT
- chmod +x ./prod-deploy/gke-release-pipeline/services.sh
- ./prod-deploy/gke-release-pipeline/services.sh
only:
variables:
- $DEV2_RELEASE_TAG
......@@ -5,6 +5,7 @@ gke-prod-deploy:
PROD_GKE_PROJECT: osdu-service-prod
stage: deploy
script:
- export TAG=${PROD_GKE_TAG}
- gcloud auth activate-service-account --key-file $PROD_GCP_SVC_ACCT
- gcloud config set project $PROD_GKE_PROJECT
- gcloud container clusters get-credentials asm-primary --zone us-central1-c --project $PROD_GKE_PROJECT
......
......@@ -27,5 +27,5 @@ services[crs-conversion]="community.opengroup.org:5555/osdu/platform/system/refe
for i in "${!services[@]}"
do
kubectl set image deployment/$i $i=${services[$i]}:${PROD_GKE_TAG} --record
kubectl set image deployment/$i $i=${services[$i]}:${TAG} --record
done
stages:
- dev2_deploy
- scripts_check
- build
- containerize
......
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