Commit 0f32ae37 authored by David Diederich's avatar David Diederich
Browse files

Merge branch 'deprecate-gcp-provider' into 'master'

Removing the GCP deployment environment, replacing with a deprecation error

See merge request !173
parents bf4e5fa3 2ae6c1a8
Pipeline #26048 passed with stage
in 9 seconds
.gcp_variables: deprecated-gcp-pipeline:
stage: .pre
variables: variables:
GCP_INTEGRATION_TESTER: $GCP_INTEGRATION_TESTER DEPRECATED_MSG: "The integration test environment previously managed by the cloud-providers/gcp.yml is no longer supported. Consider removing it from your .gitlab-ci.yml"
INTEGRATION_TESTER: $GCP_INTEGRATION_TESTER allow_failure: true
NO_DATA_ACCESS_TESTER: $GCP_NO_DATA_ACCESS_TESTER
PUBSUB_TOKEN: $GCP_PUBSUB_TOKEN
GCP_STORAGE_URL: https://os-storage-dot-opendes-evt.appspot.com/api/storage/v2/
GCP_DEPLOY_ENV: p4d
GCP_DOMAIN: cloud.slb-ds.com
GCP_TENANT_NAME: opendesevt
GCP_AUTHORIZE_API: https://entitlements-dot-opendes-evt.appspot.com/entitlements/v1/
GCP_MY_TENANT_PROJECT: opendesevt
GCP_LEGAL_HOST_URL: https://os-legal-dot-opendes-evt.appspot.com/api/legal/v1/
GCP_INTEGRATION_TEST_AUDIENCE: 245464679631-ktfdfpl147m1mjpbutl00b3cmffissgq.apps.googleusercontent.com
GCP_MY_TENANT: opendesevt
GCP_ENTITLEMENT_URL: https://entitlements-dot-opendes-evt.appspot.com/entitlements/v1/
GCP_VENDOR: gcp
.gcp:
tags: ['osdu-medium']
image: google/cloud-sdk
environment:
name: GCP
only:
variables:
- $GCP_BUILD_SUBDIR && $GCP_INT_TEST_SUBDIR && $GCP_APPLICATION_NAME && $GCP_ENVIRONMENT && $GCP_PROJECT && $GCP_DEPLOY_FILE
variables:
GCP_DEPLOY_DIR: gcp_deploy_dir
before_script:
- mkdir -p "$GCP_DEPLOY_DIR"
- gcloud auth activate-service-account --key-file="$GCP_DEPLOY_FILE"
gcp-deploy:
extends: .gcp
stage: deploy
needs: ['compile-and-unit-test']
script:
- sed -e "s|ENVIRONMENT|$GCP_ENVIRONMENT|g" "$GCP_BUILD_SUBDIR/src/main/appengine/app.yaml" | tee "$GCP_DEPLOY_DIR/app.yaml"
- cp -v "${GCP_BUILD_SUBDIR}"/target/*-spring-boot.jar "$GCP_DEPLOY_DIR"
- cd "$GCP_DEPLOY_DIR"
- gcloud app deploy --quiet --version="$CI_COMMIT_SHORT_SHA" --project="$GCP_PROJECT" app.yaml
gcp-test:
extends:
- .gcp
- .maven
- .gcp_variables
stage: integration
needs: ['gcp-deploy']
script: script:
- cd $GCP_INT_TEST_SUBDIR - echo "$DEPRECATED_MSG"
- | - /bin/false
$MAVEN test \
-DINTEGRATION_TESTER=${GCP_INTEGRATION_TESTER} \
-DNO_DATA_ACCESS_TESTER=${GCP_NO_DATA_ACCESS_TESTER} \
-DPUBSUB_TOKEN=${GCP_PUBSUB_TOKEN} \
-DSTORAGE_URL=${GCP_STORAGE_URL} \
-DDEPLOY_ENV=${GCP_DEPLOY_ENV} \
-DDOMAIN=${GCP_DOMAIN} \
-DTENANT_NAME=${GCP_TENANT_NAME} \
-DAUTHORIZE_API=${GCP_AUTHORIZE_API} \
-DMY_TENANT_PROJECT=${GCP_MY_TENANT_PROJECT} \
-DHOST_URL=${GCP_LEGAL_HOST_URL} \
-DINTEGRATION_TEST_AUDIENCE=${GCP_INTEGRATION_TEST_AUDIENCE} \
-DMY_TENANT=${GCP_MY_TENANT} \
-DENTITLEMENT_URL=${GCP_ENTITLEMENT_URL} \
-DGCLOUD_PROJECT=${GCP_MY_TENANT_PROJECT} \
-DENVIRONMENT=${GCP_DEPLOY_ENV} \
-DSTORAGE_URL=${GCP_STORAGE_URL} \
-DINT_TEST_VENDOR=${GCP_VENDOR} \
-DTENANT_GCP=${GCP_MY_TENANT_PROJECT} \
-DLEGAL_URL=${GCP_LEGAL_HOST_URL}
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