mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Drone: Rename publish-storybook to build-storybook (#26360)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
6619cc4b81
commit
35f7f7b50a
@ -146,7 +146,7 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- end-to-end-tests-server
|
- end-to-end-tests-server
|
||||||
|
|
||||||
- name: publish-storybook
|
- name: build-storybook
|
||||||
image: grafana/build-container:1.2.21
|
image: grafana/build-container:1.2.21
|
||||||
commands:
|
commands:
|
||||||
- rm -rf $(yarn cache dir) && cp -r yarn-cache $(yarn cache dir)
|
- rm -rf $(yarn cache dir) && cp -r yarn-cache $(yarn cache dir)
|
||||||
|
@ -208,23 +208,7 @@ def pipelines(kind, name, edition):
|
|||||||
'./e2e/run-suite',
|
'./e2e/run-suite',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
build_storybook_step(edition),
|
||||||
'name': 'publish-storybook',
|
|
||||||
'image': build_image,
|
|
||||||
'depends_on': [
|
|
||||||
# Best to ensure that this step doesn't mess with what's getting built and packaged
|
|
||||||
'package',
|
|
||||||
],
|
|
||||||
'commands': [
|
|
||||||
restore_yarn_cache,
|
|
||||||
'yarn storybook:build',
|
|
||||||
# TODO: Enable the following for non-forked PRs
|
|
||||||
# - 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
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'name': 'build-docs-website',
|
'name': 'build-docs-website',
|
||||||
# Use latest revision here, since we want to catch if it breaks
|
# Use latest revision here, since we want to catch if it breaks
|
||||||
@ -414,3 +398,22 @@ def lint_backend_step(edition):
|
|||||||
cmd,
|
cmd,
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def build_storybook_step(edition):
|
||||||
|
return {
|
||||||
|
'name': 'build-storybook',
|
||||||
|
'image': build_image,
|
||||||
|
'depends_on': [
|
||||||
|
# Best to ensure that this step doesn't mess with what's getting built and packaged
|
||||||
|
'package',
|
||||||
|
],
|
||||||
|
'commands': [
|
||||||
|
restore_yarn_cache,
|
||||||
|
'yarn storybook:build',
|
||||||
|
# TODO: Enable the following for OSS master builds
|
||||||
|
# - 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
|
||||||
|
],
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user