Skip to content

Commit

Permalink
Added gcloud project name to upload_image.py (#2381)
Browse files Browse the repository at this point in the history
### What

Somehow `upload_image.py` couldn't figure out the default project of my
`gcloud` setup. This PR hard-codes the project name in the script.

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [ ] ~~I've included a screenshot or gif (if applicable)~~ 

<!-- This line will get updated when the PR build summary job finishes.
-->
PR Build Summary: https://build.rerun.io/pr/2381

<!-- pr-link-docs:start -->
Docs preview: https://rerun.io/preview/47a7c7c/docs
Examples preview: https://rerun.io/preview/47a7c7c/examples
<!-- pr-link-docs:end -->
  • Loading branch information
abey79 authored Jun 12, 2023
1 parent c27d0fa commit 4acfcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upload_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def main() -> None:
hash = content_hash(args.path)
object_name = f"{hash}_{os.path.basename(args.path)}"

gcs = storage.Client()
gcs = storage.Client("rerun-open")
bucket = gcs.bucket("rerun-static-img")
destination = bucket.blob(object_name)
destination.content_type, destination.content_encoding = mimetypes.guess_type(args.path)
Expand Down

0 comments on commit 4acfcbd

Please sign in to comment.