Setting up continuous delivery with Google Container Registry
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:
Visit the Google Developers Console.
Choose a project you want to integrate with Semaphore.
Click “IAM & Admin” in the left-hand menu.
Go to “Service accounts” and click “Create service account”.
Type in a name that is meaningful to you. We named the account Semaphore, since we are making an integration with Semaphore. Tick “Furnish a new private key”, and leave “JSON” selected. Finally, click “Create”, and the public/private key JSON file will be saved to your disk.
Store this file somewhere safe — you won’t be able to retrieve it again from the Google Console.
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.
Enter your email and copy the contents of the JSON file you downloaded earlier from the Google Console.
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.