Skip to content

Instantly share code, notes, and snippets.

@grant

grant/deploy.sh

Created Jul 26, 2020
Embed
What would you like to do?
R Functions Framework Deploy
# Set env var "GCP_PROJECT" to our project name
GCP_PROJECT=$(gcloud config list --format 'value(core.project)' 2>/dev/null)
# Build and upload your image in Google Container Registry
gcloud builds submit \
--tag gcr.io/$GCP_PROJECT/hellor \
--timeout="20m"
# Deploy your container to Cloud Run
gcloud run deploy hellor \
--image gcr.io/$GCP_PROJECT/hellor \
--platform managed \
--allow-unauthenticated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.