This is a Cloud Function designed to check and update the GTM image currently deployed to the specified Cloud Run service.
- Clone this repository
- Deploy with
gcloud builds deploy
to your GCP project - Trigger the Cloud Function (e.g. Cloud Scheduler once a day)
The function takes three parameters from the post body to work as expected
{
"project_id": YOUR_PROJECT_ID,
"region": REGION_OF_THE_CR_SERVICE,
"service_name: SERVICE_NAME
}