Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update storybook deploy to use sync not cp #2926

Merged
merged 3 commits into from
Nov 5, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1015,12 +1015,12 @@ workflows:
- deploy_prod_storybook:
requires:
- build_storybook_app
- approve_prod_deploy
# - approve_prod_deploy
filters:
branches:
only: master
# only: master
# Uncomment below if pushing a test branch. Also comment out approve_prod_deploy few lines above.
#only: placeholder_branch_name
only: cg_storybook_sync_no_cp

dependency_updater_go:
triggers:
Expand Down
5 changes: 4 additions & 1 deletion scripts/push-storybook-assets
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ fi

readonly bucket=${1:-}

aws s3 cp --recursive --sse AES256 /tmp/storybook/storybook-static/ s3://"${bucket}"/
# Sync files from source to destination
# encrypt files on upload
# delete files at destination that are not on source (bucket versioning is enabled so it only adds a delete marker)
aws s3 sync --delete --sse AES256 /tmp/storybook/storybook-static/ s3://"${bucket}"/