Skip to content

Instantly share code, notes, and snippets.

@grant

grant/run.sh

Created Jun 29, 2020
Embed
What would you like to do?
Vapor Cloud Run
# Set project to current project in gcloud
PROJECT=$(gcloud config list --format 'value(core.project)' 2>/dev/null)
# Build the container using Cloud Build, giving plenty of time for the `swift build` step
gcloud builds submit --tag gcr.io/$PROJECT/vapor --timeout="20m"
# Run the container
gcloud run deploy vapor --image gcr.io/$GCP_PROJECT/vapor --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.