mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
CircleCI: Don't publish storybook for PRs (#22845)
This commit is contained in:
parent
81fed255fd
commit
e38e08dfb3
@ -422,20 +422,20 @@ jobs:
|
||||
- run:
|
||||
name: Publish Storybook
|
||||
command: |
|
||||
echo $GCP_GRAFANA_UPLOAD_KEY > /tmp/gcpkey.json
|
||||
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
|
||||
yarn install --frozen-lockfile --no-progress
|
||||
yarn storybook:build
|
||||
if [[ $CIRCLE_BRANCH == "chore/test-release-pipeline" ]]; then
|
||||
# We're testing the release pipeline
|
||||
echo Testing release
|
||||
elif [[ $CIRCLE_BRANCH == "master" ]]; then
|
||||
echo $GCP_GRAFANA_UPLOAD_KEY > /tmp/gcpkey.json
|
||||
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
|
||||
gsutil -m rsync -d -r ./packages/grafana-ui/dist/storybook gs://grafana-storybook/canary
|
||||
elif [[ -n $CIRCLE_TAG ]]; then
|
||||
echo $GCP_GRAFANA_UPLOAD_KEY > /tmp/gcpkey.json
|
||||
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
|
||||
gsutil -m rsync -d -r ./packages/grafana-ui/dist/storybook gs://grafana-storybook/latest
|
||||
gsutil -m rsync -d -r ./packages/grafana-ui/dist/storybook gs://grafana-storybook/$CIRCLE_TAG
|
||||
else
|
||||
gsutil -m rsync -d -r ./packages/grafana-ui/dist/storybook gs://grafana-storybook/${CIRCLE_SHA1:0:7}
|
||||
fi
|
||||
- run:
|
||||
name: CI job failed
|
||||
|
Loading…
Reference in New Issue
Block a user