Skip to content

Instantly share code, notes, and snippets.

@sis0k0
Created September 15, 2022 16:54
Show Gist options
  • Save sis0k0/c713bdef5595d035d0ad5b1b47ea78a3 to your computer and use it in GitHub Desktop.
Save sis0k0/c713bdef5595d035d0ad5b1b47ea78a3 to your computer and use it in GitHub Desktop.
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