How to push a Docker image to Google Artifact Registry with a GitHub Action without using a Service Account
This how I managed to push a Docker image in a Google Cloud Artifact Registry using a GitHub Actions workflow without using a GCP Service Account.
Before using this tutorial make sure you have :
- A GitHub repository containing a Dockerfile
- A GCP project with sufficient permissions to make changes to it
- The
gcloud
tool installed, authenticated and configured to use the GCP project. We will not use the--project
flag in the followinggcloud
commands.