Replace with secret (#47488)
This commit is contained in:
+7
-3
@@ -2934,12 +2934,14 @@ steps:
|
|||||||
image: byrnedo/alpine-curl:0.1.8
|
image: byrnedo/alpine-curl:0.1.8
|
||||||
name: grabpl
|
name: grabpl
|
||||||
- commands:
|
- 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:
|
depends_on:
|
||||||
- grabpl
|
- grabpl
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_key
|
||||||
|
PRERELEASE_BUCKET:
|
||||||
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.1
|
image: grafana/grafana-ci-deploy:1.3.1
|
||||||
name: publish-artifacts
|
name: publish-artifacts
|
||||||
trigger:
|
trigger:
|
||||||
@@ -2970,12 +2972,14 @@ steps:
|
|||||||
image: byrnedo/alpine-curl:0.1.8
|
image: byrnedo/alpine-curl:0.1.8
|
||||||
name: grabpl
|
name: grabpl
|
||||||
- commands:
|
- commands:
|
||||||
- ./bin/grabpl artifacts publish --tag ${TAG} --src-bucket grafana-prerelease
|
- ./bin/grabpl artifacts publish --tag ${TAG} --src-bucket $${PRERELEASE_BUCKET}
|
||||||
depends_on:
|
depends_on:
|
||||||
- grabpl
|
- grabpl
|
||||||
environment:
|
environment:
|
||||||
GCP_KEY:
|
GCP_KEY:
|
||||||
from_secret: gcp_key
|
from_secret: gcp_key
|
||||||
|
PRERELEASE_BUCKET:
|
||||||
|
from_secret: prerelease_bucket
|
||||||
image: grafana/grafana-ci-deploy:1.3.1
|
image: grafana/grafana-ci-deploy:1.3.1
|
||||||
name: publish-artifacts
|
name: publish-artifacts
|
||||||
trigger:
|
trigger:
|
||||||
@@ -4448,6 +4452,6 @@ kind: secret
|
|||||||
name: gcp_upload_artifacts_key
|
name: gcp_upload_artifacts_key
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 0fbba9c5099f1a3585f866b624f198058332624a4de32193a5326450a39cb8f3
|
hmac: 9b87d4bb17d422973023c6ad1a59980c37832ae60ba6bb0d11ee024ea1e35b1a
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -339,8 +339,9 @@ def publish_artifacts_step(mode):
|
|||||||
'image': publish_image,
|
'image': publish_image,
|
||||||
'environment': {
|
'environment': {
|
||||||
'GCP_KEY': from_secret('gcp_key'),
|
'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'],
|
'depends_on': ['grabpl'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user