File tree 1 file changed +5
-1
lines changed
ansible/www-standalone/tools/promote
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 42
42
relativedir=${dstdir/ $dist_rootdir / " $site /" }
43
43
tmpversion=$2
44
44
45
- aws s3 cp $staging_bucket /$relativedir /$tmpversion / $dist_bucket /$relativedir /$tmpversion / --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile --recursive --no-follow-symlinks
45
+ # Due to R2 limitations, `aws s3 cp` and `aws s3 sync` only succeed in copying
46
+ # different sets of files across. Fortunately the sets are disjoint, so running
47
+ # both commands (ignoring errors) will copy all the files across.
48
+ aws s3 cp $staging_bucket /$relativedir /$tmpversion / $dist_bucket /$relativedir /$tmpversion / --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile --recursive --no-follow-symlinks --copy-props none || true
49
+ aws s3 sync $staging_bucket /$relativedir /$tmpversion / $dist_bucket /$relativedir /$tmpversion / --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile --no-follow-symlinks || true
46
50
aws s3 cp $staging_bucket /$relativedir /index.json $dist_bucket /$relativedir /index.json --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile
47
51
aws s3 cp $staging_bucket /$relativedir /index.tab $dist_bucket /$relativedir /index.tab --endpoint-url=$cloudflare_endpoint --profile $cloudflare_profile
You can’t perform that action at this time.
0 commit comments