Created
September 15, 2022 16:54
-
-
Save sis0k0/c713bdef5595d035d0ad5b1b47ea78a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcloud services enable run.googleapis.com | |
| gcloud services enable cloudbuild.googleapis.com | |
| # Server | |
| # Create container | |
| gcloud builds submit \ | |
| --tag gcr.io/${GOOGLE_CLOUD_PROJECT}/employees-api:1.0.0 . | |
| # Deploy service | |
| gcloud run deploy employees-api \ | |
| --image=gcr.io/${GOOGLE_CLOUD_PROJECT}/employees-api:1.0.0 \ | |
| --platform managed \ | |
| --port 5200 \ | |
| --allow-unauthenticated \ | |
| --region europe-central2 | |
| # Client | |
| # Create container | |
| gcloud builds submit \ | |
| --tag gcr.io/${GOOGLE_CLOUD_PROJECT}/employees-web-app:1.0.0 . | |
| # Deploy service | |
| gcloud run deploy employees-web-app \ | |
| --image=gcr.io/${GOOGLE_CLOUD_PROJECT}/employees-web-app:1.0.0 \ | |
| --port 8080 \ | |
| --platform managed \ | |
| --allow-unauthenticated \ | |
| --region europe-central2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment