Skip to content

Instantly share code, notes, and snippets.

@ashmore11
Last active January 19, 2021 17:49
Show Gist options
  • Save ashmore11/4b6aae53b25cd183e91dde79f346d6ed to your computer and use it in GitHub Desktop.
Save ashmore11/4b6aae53b25cd183e91dde79f346d6ed to your computer and use it in GitHub Desktop.
Next Strapi Cloud Run (pipelines prepare bash)
#! /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