Setting up Google Container Registry (GCR) for your project is simple and straightforward.
If your project is not set up as a Docker project, you should check out our documentation page on setting up continuous integration for a Docker project on Semaphore for more information.
Configuring your project as a Docker project will enable you to set up Docker registry integrations in project add-ons.
By adding the Google Container Registry integration, you will be able to push and pull images effortlessly, without having to worry about authentication.
In order to get the data needed for enabling the GCR integration, you will need to:
After you've followed the steps on Google Cloud Platform, visit your project on Semaphore, and click "Add-ons" in the upper right corner of your screen.
Next, click "Docker Registry".
Select the "Google Container Registry (GCR)" integration.
Choose your GCR region and copy the contents of the JSON file you downloaded earlier from the Google Cloud Platform.
Once you've copied the contents, click "Save". Semaphore will safely encrypt and store your Google credentials.
You can now push or pull images from Google Container Registry through Semaphore.
docker push gcr.io/project_id/repository_name
Semaphore Docs are open source — Edit on GitHub