CI: Update secrets for publishing steps (#73658)

Update secrets
This commit is contained in:
Dimitris Sotirakis 2023-08-23 10:57:19 +03:00 committed by GitHub
parent 65df5a0d7e
commit de118a3736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View File

@ -2581,7 +2581,7 @@ steps:
- compile-build-cmd - compile-build-cmd
environment: environment:
GCP_KEY: GCP_KEY:
from_secret: gcp_upload_artifacts_key from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET: PRERELEASE_BUCKET:
from_secret: prerelease_bucket from_secret: prerelease_bucket
image: grafana/grafana-ci-deploy:1.3.3 image: grafana/grafana-ci-deploy:1.3.3
@ -2592,7 +2592,7 @@ steps:
- compile-build-cmd - compile-build-cmd
environment: environment:
GCP_KEY: GCP_KEY:
from_secret: gcp_upload_artifacts_key from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET: PRERELEASE_BUCKET:
from_secret: prerelease_bucket from_secret: prerelease_bucket
STATIC_ASSET_EDITIONS: STATIC_ASSET_EDITIONS:
@ -2605,7 +2605,7 @@ steps:
- compile-build-cmd - compile-build-cmd
environment: environment:
GCP_KEY: GCP_KEY:
from_secret: gcp_upload_artifacts_key from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET: PRERELEASE_BUCKET:
from_secret: prerelease_bucket from_secret: prerelease_bucket
image: grafana/grafana-ci-deploy:1.3.3 image: grafana/grafana-ci-deploy:1.3.3
@ -2656,7 +2656,7 @@ steps:
- yarn-install - yarn-install
environment: environment:
GCP_KEY: GCP_KEY:
from_secret: gcp_upload_artifacts_key from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET: PRERELEASE_BUCKET:
from_secret: prerelease_bucket from_secret: prerelease_bucket
failure: ignore failure: ignore
@ -4544,6 +4544,6 @@ kind: secret
name: delivery-bot-app-private-key name: delivery-bot-app-private-key
--- ---
kind: signature kind: signature
hmac: 5f0fb625d68170818a8dbfc073ed73f8dc1460906bebc49d6036f5f2fbc0aa9d hmac: 303fb59b2da9a39e5bc46dcb962894895697c46477d0c94b2a65c290e87ea57e
... ...

View File

@ -54,7 +54,7 @@ load(
load( load(
"scripts/drone/vault.star", "scripts/drone/vault.star",
"from_secret", "from_secret",
"gcp_upload_artifacts_key", "gcp_grafanauploads_base64",
"npm_token", "npm_token",
"prerelease_bucket", "prerelease_bucket",
"rgm_gcp_key_base64", "rgm_gcp_key_base64",
@ -94,7 +94,7 @@ def store_npm_packages_step():
"build-frontend-packages", "build-frontend-packages",
], ],
"environment": { "environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key), "GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret(prerelease_bucket), "PRERELEASE_BUCKET": from_secret(prerelease_bucket),
}, },
"commands": ["./bin/build artifacts npm store --tag ${DRONE_TAG}"], "commands": ["./bin/build artifacts npm store --tag ${DRONE_TAG}"],
@ -110,7 +110,7 @@ def retrieve_npm_packages_step():
], ],
"failure": "ignore", "failure": "ignore",
"environment": { "environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key), "GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret(prerelease_bucket), "PRERELEASE_BUCKET": from_secret(prerelease_bucket),
}, },
"commands": ["./bin/build artifacts npm retrieve --tag ${DRONE_TAG}"], "commands": ["./bin/build artifacts npm retrieve --tag ${DRONE_TAG}"],
@ -272,7 +272,7 @@ def publish_artifacts_step():
"name": "publish-artifacts", "name": "publish-artifacts",
"image": images["publish_image"], "image": images["publish_image"],
"environment": { "environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key), "GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"), "PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
}, },
"commands": [ "commands": [
@ -286,7 +286,7 @@ def publish_static_assets_step():
"name": "publish-static-assets", "name": "publish-static-assets",
"image": images["publish_image"], "image": images["publish_image"],
"environment": { "environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key), "GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"), "PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
"STATIC_ASSET_EDITIONS": from_secret("static_asset_editions"), "STATIC_ASSET_EDITIONS": from_secret("static_asset_editions"),
}, },
@ -301,7 +301,7 @@ def publish_storybook_step():
"name": "publish-storybook", "name": "publish-storybook",
"image": images["publish_image"], "image": images["publish_image"],
"environment": { "environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key), "GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"), "PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
}, },
"commands": [ "commands": [