Commit 15a17652 authored by Oleksandr Kosse (EPAM)'s avatar Oleksandr Kosse (EPAM) Committed by Aliaksandr Lubouski (EPAM)
Browse files

(GONRG-2632) Gcp ci bootstrap

parent 2d2e3021
...@@ -40,6 +40,8 @@ variables: ...@@ -40,6 +40,8 @@ variables:
OSDU_GCP_TESTS_SUBDIR: testing/schema-test-core OSDU_GCP_TESTS_SUBDIR: testing/schema-test-core
OSDU_GCP_ENV_VARS: AUTHORIZE_API=$OSDU_GCP_ENTITLEMENTS_V2_URL,AUTHORIZE_API_KEY=$OSDU_GCP_AUTHORIZE_API_KEY,LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=DEBUG,SHARED_TENANT_NAME=$TENANT,PARTITION_API=$OSDU_GCP_PARTITION_API,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE --vpc-connector=$OSDU_GCP_VPC_CONNECTOR OSDU_GCP_ENV_VARS: AUTHORIZE_API=$OSDU_GCP_ENTITLEMENTS_V2_URL,AUTHORIZE_API_KEY=$OSDU_GCP_AUTHORIZE_API_KEY,LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=DEBUG,SHARED_TENANT_NAME=$TENANT,PARTITION_API=$OSDU_GCP_PARTITION_API,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE --vpc-connector=$OSDU_GCP_VPC_CONNECTOR
OSDU_GCP_HELM_PACKAGE_CHARTS: "devops/gcp/deploy devops/gcp/configmap" OSDU_GCP_HELM_PACKAGE_CHARTS: "devops/gcp/deploy devops/gcp/configmap"
OSDU_GCP_DEPLOYMENTS_SUBDIR: deployments/scripts/google
OSDU_GCP_DEPLOYMENTS_SCRIPTS_SUBDIR: deployments/scripts
include: include:
- project: "osdu/platform/ci-cd-pipelines" - project: "osdu/platform/ci-cd-pipelines"
...@@ -70,6 +72,7 @@ include: ...@@ -70,6 +72,7 @@ include:
- local: "/devops/azure/gitlab-bootstrap.yml" - local: "/devops/azure/gitlab-bootstrap.yml"
- local: "/devops/aws/bootstrap.yaml" - local: "/devops/aws/bootstrap.yaml"
- local: "/devops/ibm/bootstrap.yaml" - local: "/devops/ibm/bootstrap.yaml"
- local: "/devops/gcp/bootstrap.yaml"
osdu-gcp-test: osdu-gcp-test:
image: maven:3.6.3-jdk-8 image: maven:3.6.3-jdk-8
......
...@@ -3,4 +3,3 @@ BEARER_TOKEN=`python $IBM_DEPLOYMENTS_SUBDIR/Token.py` ...@@ -3,4 +3,3 @@ BEARER_TOKEN=`python $IBM_DEPLOYMENTS_SUBDIR/Token.py`
export BEARER_TOKEN=$BEARER_TOKEN export BEARER_TOKEN=$BEARER_TOKEN
echo $BEARER_TOKEN echo $BEARER_TOKEN
python $IBM_DEPLOYMENTS_SCRIPTS_SUBDIR/DeploySharedSchemas.py -u $IBM_SCHEMA_URL python $IBM_DEPLOYMENTS_SCRIPTS_SUBDIR/DeploySharedSchemas.py -u $IBM_SCHEMA_URL
osdu_gcp_bootstrap:
stage: bootstrap
image: python:3.8
needs: ["osdu-gcp-deploy"]
extends:
- .osdu-gcp-variables
variables:
JSON_KEY: $OSDU_GCP_INTEGRATION_TESTER
AUDIENCE: $GOOGLE_AUDIENCE
DATA_PARTITION: $OSDU_TENANT
script:
- pip install -r $OSDU_GCP_DEPLOYMENTS_SUBDIR/requirements.txt
- export BEARER_TOKEN=$(python $OSDU_GCP_DEPLOYMENTS_SUBDIR/Token.py)
- python $OSDU_GCP_DEPLOYMENTS_SCRIPTS_SUBDIR/DeploySharedSchemas.py -u $OSDU_GCP_SCHEMA_URL/api/schema-service/v1/schema
only:
variables:
- $OSDU_GCP == 'true'
osdu-gcp-test:
needs: ["osdu_gcp_bootstrap"]
only:
variables:
- $OSDU_GCP == 'true'
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