mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Drone: Protect GCP_KEY (#26436)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
c65cef2327
commit
e4be332b78
@ -379,7 +379,7 @@ steps:
|
||||
- name: publish-storybook
|
||||
image: grafana/grafana-ci-deploy:1.2.5
|
||||
commands:
|
||||
- echo $${GCP_KEY} > /tmp/gcpkey.json
|
||||
- echo "$${GCP_KEY}" > /tmp/gcpkey.json
|
||||
- gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
|
||||
- echo gsutil -m rsync -d -r ./packages/grafana-ui/dist/storybook gs://grafana-storybook/canary
|
||||
environment:
|
||||
|
@ -157,7 +157,7 @@ def init_steps(edition):
|
||||
},
|
||||
},
|
||||
'commands': [
|
||||
'git clone https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git',
|
||||
'git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git"',
|
||||
'cd grafana-enterprise',
|
||||
'git checkout ${DRONE_COMMIT}',
|
||||
],
|
||||
@ -251,7 +251,7 @@ def publish_storybook_step(edition):
|
||||
},
|
||||
},
|
||||
'commands': [
|
||||
'echo $${GCP_KEY} > /tmp/gcpkey.json',
|
||||
'echo "$${GCP_KEY}" > /tmp/gcpkey.json',
|
||||
'gcloud auth activate-service-account --key-file=/tmp/gcpkey.json',
|
||||
'echo gsutil -m rsync -d -r ./packages/grafana-ui/dist/storybook gs://grafana-storybook/canary',
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user