Drone: Use base64 encoded GCP key (#26438)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen 2020-07-18 17:31:47 +02:00 committed by GitHub
parent e4be332b78
commit c298653623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -379,7 +379,7 @@ steps:
- name: publish-storybook
image: grafana/grafana-ci-deploy:1.2.5
commands:
- echo "$${GCP_KEY}" > /tmp/gcpkey.json
- printenv GCP_KEY | base64 -d > /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:

View File

@ -251,7 +251,7 @@ def publish_storybook_step(edition):
},
},
'commands': [
'echo "$${GCP_KEY}" > /tmp/gcpkey.json',
'printenv GCP_KEY | base64 -d > /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',
],