https://github.com/d2verb/rust-cloud-run
https://github.com/d2verb/rust-cloud-run
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/d2verb/rust-cloud-run
- Owner: d2verb
- Created: 2023-01-18T15:42:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T15:46:01.000Z (over 3 years ago)
- Last Synced: 2025-03-05T20:53:01.525Z (over 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to deploy to Cloud Run
1. push to Artifact Registry
```
$ gcloud artifacts repositories create rust-cloud-run --location=asia-northeast1 --repository-format=docker
$ gcloud auth configure-docker asia-northeast1-docker.pkg.dev
$ docker build . -t asia-northeast1-docker.pkg.dev//rust-cloud-run/rust-cloud-run --target release
$ docker push asia-northeast1-docker.pkg.dev//rust-cloud-run/rust-cloud-run
```
2. deploy to Cloud Run
```
$ gcloud run deploy rust-cloud-run --image asia-northeast1-docker.pkg.dev//rust-cloud-run/rust-cloud-run
```
3. delete service
```
$ gcloud run services delete rust-cloud-run
```