Created
June 29, 2020 18:32
-
-
Save grant/572373d9bfb9a6805836edb78b4925d3 to your computer and use it in GitHub Desktop.
Vapor Cloud Run
This file contains 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
# 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