Storybook: Replace gsutil rsync with gsutil cp when copying artifacts (#47335)

* Replace gsutil rsync with cp

* Sync drone

* Remove folder before uploading artifacts
This commit is contained in:
Dimitris Sotirakis
2022-04-06 13:31:36 +03:00
committed by GitHub
parent 0d3879d1c1
commit 25e04d77be
2 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -273,8 +273,8 @@ def store_storybook_step(edition, ver_mode, trigger=None):
'printenv GCP_KEY | base64 -d > /tmp/gcpkey.json',
'gcloud auth activate-service-account --key-file=/tmp/gcpkey.json',
] + [
'gsutil -m rsync -d -r ./packages/grafana-ui/dist/storybook gs://$${{PRERELEASE_BUCKET}}/artifacts/storybook/{}'.format(
c)
'gsutil -m rm -r gs://$${{PRERELEASE_BUCKET}}/artifacts/storybook/{} && gsutil -m cp -r ./packages/grafana-ui/dist/storybook/* gs://$${{PRERELEASE_BUCKET}}/artifacts/storybook/{}'.format(
c, c)
for c in channels
])