Last active
January 19, 2021 17:49
-
-
Save ashmore11/4b6aae53b25cd183e91dde79f346d6ed to your computer and use it in GitHub Desktop.
Next Strapi Cloud Run (pipelines prepare bash)
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
#! /bin/bash | |
# Activate Google Serice Account responsible for deployments | |
echo "$GCLOUD_SERVICE_ACCOUNT_KEY" > .service-account-key.json | |
gcloud auth activate-service-account --key-file .service-account-key.json | |
# Set te project in gcloud so it knows which project to interact with | |
gcloud config set project "$GCLOUD_PROJECT_ID" | |
# Authorize docker so we can push images to Google Container Registry | |
gcloud auth configure-docker --quiet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment