From e38e08dfb3307a3121d55deefa9ac8a18e271773 Mon Sep 17 00:00:00 2001 From: Arve Knudsen Date: Tue, 17 Mar 2020 15:56:08 +0100 Subject: [PATCH] CircleCI: Don't publish storybook for PRs (#22845) --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c96c2b31a18..7d78dd32641 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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