Skip to content

Commit

Permalink
[v10.0.x] CI: Update secrets for publishing steps (#73661)
Browse files Browse the repository at this point in the history
CI: Update secrets for publishing steps (#73658)

Update secrets

(cherry picked from commit de118a3)
  • Loading branch information
dsotirakis authored and zerok committed Aug 23, 2023
1 parent cf71519 commit 71b69f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@ steps:
- compile-build-cmd
environment:
GCP_KEY:
from_secret: gcp_upload_artifacts_key
from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET:
from_secret: prerelease_bucket
image: grafana/grafana-ci-deploy:1.3.3
Expand All @@ -2291,7 +2291,7 @@ steps:
- compile-build-cmd
environment:
GCP_KEY:
from_secret: gcp_upload_artifacts_key
from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET:
from_secret: prerelease_bucket
STATIC_ASSET_EDITIONS:
Expand All @@ -2304,7 +2304,7 @@ steps:
- compile-build-cmd
environment:
GCP_KEY:
from_secret: gcp_upload_artifacts_key
from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET:
from_secret: prerelease_bucket
image: grafana/grafana-ci-deploy:1.3.3
Expand Down Expand Up @@ -2355,7 +2355,7 @@ steps:
- yarn-install
environment:
GCP_KEY:
from_secret: gcp_upload_artifacts_key
from_secret: gcp_grafanauploads_base64
PRERELEASE_BUCKET:
from_secret: prerelease_bucket
failure: ignore
Expand Down Expand Up @@ -4187,6 +4187,6 @@ kind: secret
name: delivery-bot-app-private-key
---
kind: signature
hmac: cfd4179de22a070bc047261b534a5b070ab65e883281208bbdc56f95c0c293d9
hmac: 386ef565fa4edbebf495577f14aa00c751c9fca95c05c0d62480509e01e64bd3

...
12 changes: 6 additions & 6 deletions scripts/drone/events/release.star
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ load(
load(
"scripts/drone/vault.star",
"from_secret",
"gcp_upload_artifacts_key",
"gcp_grafanauploads_base64",
"npm_token",
"prerelease_bucket",
"rgm_gcp_key_base64",
Expand Down Expand Up @@ -94,7 +94,7 @@ def store_npm_packages_step():
"build-frontend-packages",
],
"environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
"GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
},
"commands": ["./bin/build artifacts npm store --tag ${DRONE_TAG}"],
Expand All @@ -110,7 +110,7 @@ def retrieve_npm_packages_step():
],
"failure": "ignore",
"environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
"GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret(prerelease_bucket),
},
"commands": ["./bin/build artifacts npm retrieve --tag ${DRONE_TAG}"],
Expand Down Expand Up @@ -271,7 +271,7 @@ def publish_artifacts_step():
"name": "publish-artifacts",
"image": images["publish_image"],
"environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
"GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
},
"commands": [
Expand All @@ -285,7 +285,7 @@ def publish_static_assets_step():
"name": "publish-static-assets",
"image": images["publish_image"],
"environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
"GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
"STATIC_ASSET_EDITIONS": from_secret("static_asset_editions"),
},
Expand All @@ -300,7 +300,7 @@ def publish_storybook_step():
"name": "publish-storybook",
"image": images["publish_image"],
"environment": {
"GCP_KEY": from_secret(gcp_upload_artifacts_key),
"GCP_KEY": from_secret(gcp_grafanauploads_base64),
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
},
"commands": [
Expand Down

0 comments on commit 71b69f9

Please sign in to comment.