mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 05:37:53 +08:00
Replace with secret (#47488)
This commit is contained in:

committed by
GitHub

parent
e1438990ae
commit
ce2a9252c2
10
.drone.yml
10
.drone.yml
@ -2934,12 +2934,14 @@ steps:
|
||||
image: byrnedo/alpine-curl:0.1.8
|
||||
name: grabpl
|
||||
- commands:
|
||||
- ./bin/grabpl artifacts publish --security --tag ${TAG} --src-bucket grafana-prerelease
|
||||
- ./bin/grabpl artifacts publish --security --tag ${TAG} --src-bucket $${PRERELEASE_BUCKET}
|
||||
depends_on:
|
||||
- grabpl
|
||||
environment:
|
||||
GCP_KEY:
|
||||
from_secret: gcp_key
|
||||
PRERELEASE_BUCKET:
|
||||
from_secret: prerelease_bucket
|
||||
image: grafana/grafana-ci-deploy:1.3.1
|
||||
name: publish-artifacts
|
||||
trigger:
|
||||
@ -2970,12 +2972,14 @@ steps:
|
||||
image: byrnedo/alpine-curl:0.1.8
|
||||
name: grabpl
|
||||
- commands:
|
||||
- ./bin/grabpl artifacts publish --tag ${TAG} --src-bucket grafana-prerelease
|
||||
- ./bin/grabpl artifacts publish --tag ${TAG} --src-bucket $${PRERELEASE_BUCKET}
|
||||
depends_on:
|
||||
- grabpl
|
||||
environment:
|
||||
GCP_KEY:
|
||||
from_secret: gcp_key
|
||||
PRERELEASE_BUCKET:
|
||||
from_secret: prerelease_bucket
|
||||
image: grafana/grafana-ci-deploy:1.3.1
|
||||
name: publish-artifacts
|
||||
trigger:
|
||||
@ -4448,6 +4452,6 @@ kind: secret
|
||||
name: gcp_upload_artifacts_key
|
||||
---
|
||||
kind: signature
|
||||
hmac: 0fbba9c5099f1a3585f866b624f198058332624a4de32193a5326450a39cb8f3
|
||||
hmac: 9b87d4bb17d422973023c6ad1a59980c37832ae60ba6bb0d11ee024ea1e35b1a
|
||||
|
||||
...
|
||||
|
@ -339,8 +339,9 @@ def publish_artifacts_step(mode):
|
||||
'image': publish_image,
|
||||
'environment': {
|
||||
'GCP_KEY': from_secret('gcp_key'),
|
||||
'PRERELEASE_BUCKET': from_secret('prerelease_bucket'),
|
||||
},
|
||||
'commands': ['./bin/grabpl artifacts publish {}--tag ${{TAG}} --src-bucket grafana-prerelease'.format(security)],
|
||||
'commands': ['./bin/grabpl artifacts publish {}--tag ${{TAG}} --src-bucket $${{PRERELEASE_BUCKET}}'.format(security)],
|
||||
'depends_on': ['grabpl'],
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user