Now that we've built the Docker image locally, let's build it automatically on every push to the main branch.
Use the setup-gcloud action to authenticate with GCP.
I recommend using the simple service account key JSON setup.
gcloud builds submit --tag REGION-docker.pkg.dev/PROJECT_ID/REPOSITORY/IMAGE:TAG .
You can copy/paste your actual value for the tag from your Artifact Registry repo page in the GCP console.
Paste the URL of your GitHub repo into the box and run the GitHub checks.