Skip to content
Snippets Groups Projects
Commit 0ea6536b authored by Oleksandr Kosse (EPAM)'s avatar Oleksandr Kosse (EPAM)
Browse files

Merge branch 'GONRG-10472-Refactoring-pipelines-for-new-AR' into 'main'

GONRG-10472-Refactoring-pipelines-for-new-AR

See merge request !2
parents e79b0ecb 94ac7723
Branches main
No related tags found
1 merge request!2GONRG-10472-Refactoring-pipelines-for-new-AR
Pipeline #296481 passed
variables:
GC_GCR_REGISTRY: gcr.io/osdu-anthos
include:
# Stages and standard settings
- local: "pipelines/stages.yml"
# Common scripts used in other jobs
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/gc-scripts.yml"
# Common variables used in other jobs
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/gc-global-variables.yml"
# Helm logic
- local: "pipelines/helm-package.yml"
# Scripts check logic
......
variables:
GC_HELM_DEPLOYMENT_DIR: "chart"
GC_HELM_PACKAGE_NAME: "custom-metrics"
GC_GCR_REGISTRY: "gcr.io/osdu-anthos"
.gc_get_latest_helm_package_version:
script:
......@@ -50,6 +49,9 @@ gc-helm-charts-release-gcr:
name: Google_Cloud
stage: package
tags: ["osdu-small"]
id_tokens:
GITLAB_OIDC_TOKEN:
aud: https://iam.googleapis.com/projects/${GC_PROJECT_NUMBER}/locations/global/workloadIdentityPools/${GC_POOL_ID}/providers/${GC_PROVIDER_ID}
image:
name: gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
entrypoint: [""]
......@@ -59,7 +61,7 @@ gc-helm-charts-release-gcr:
before_script:
- apk add --no-cache curl bash
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | VERIFY_CHECKSUM=false bash
- gcloud auth activate-service-account --key-file=${GC_BAREMETAL_DEPLOY_FILE}
- !reference [.gc_obtain_credentials, script]
- gcloud auth configure-docker gcr.io
script:
- !reference [.gc_define_version, script]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment