Skip to content

Commit

Permalink
chore: gcp to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchantey committed Oct 18, 2024
1 parent 87f8e98 commit 9ce0224
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ world.spawn(FallbackFlow)

The examples for beet are *scene-based*, meaning each example provides a scene for a common base app. As Bevy scene workflows are a wip, there are a few `Placeholder` types used for not-yet-serializable types like cameras, asset handles etc.

Most examples rely on assets that can be downloaded with the following commands, or manually from [here](https://storage.googleapis.com/beet-misc/assets.tar.gz).
Most examples rely on assets that can be downloaded with the following commands, or manually from [here](https://beetmash-public.s3.us-west-2.amazonaws.com/assets.tar.gz).

```sh
curl -o ./assets.tar.gz https://storage.googleapis.com/beet-misc/assets.tar.gz
curl -o ./assets.tar.gz https://beetmash-public.s3.us-west-2.amazonaws.com/assets.tar.gz
tar -xzvf ./assets.tar.gz
rm ./assets.tar.gz
```
Expand Down
Binary file removed assets.tar.gz
Binary file not shown.
10 changes: 4 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,13 @@ watch-web *command:
-w '**/*/assets/**/*' \
-- {{command}}

### GSUTIL
push-assets:
assets-push:
tar -czvf ./assets.tar.gz ./assets
gsutil cp ./assets.tar.gz gs://beet-misc/assets.tar.gz
gsutil cp ./assets.tar.gz gs://beet-misc/assets-backup.tar.gz
aws s3 cp ./assets.tar.gz s3://beetmash-public/assets.tar.gz
rm ./assets.tar.gz

pull-assets:
curl -o ./assets.tar.gz https://storage.googleapis.com/beet-misc/assets.tar.gz
assets-pull:
curl -o ./assets.tar.gz https://beetmash-public.s3.us-west-2.amazonaws.com/assets.tar.gz
tar -xzvf ./assets.tar.gz
rm ./assets.tar.gz

Expand Down
12 changes: 12 additions & 0 deletions policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}
]
}

0 comments on commit 9ce0224

Please sign in to comment.