While you may pull an image directly from Docker Hub, here are our legacy instructions for pushing a Docker image to GCP Artifact Registry:
Create a repository on
GCP Artifact Registry by
clicking the + CREATE REPOSITORY
button.
CREATE
Click on the newly created repository (e.g. mage-docker
).
Near the top of the page, click the link SETUP INSTRUCTIONS
or read these
instructions
to set up authentication for Docker.
Run the following command in your terminal:
An example command could look like this:
Pull the Mage Docker image:
If your local workstation is using macOS and a silicon chip (e.g. M1, M2, etc), then run this command instead:
Tag the pulled Mage docker image or use a previously tagged Docker image you built when following this CI/CD guide:
Sample commands if using vanilla Mage Docker image:
An example command could look like this:
Sample commands if using previously tagged a custom Docker image using the tag mageprod:latest
:
An example command could look like this if you previously tagged your custom Docker image with the tag mageprod:latest
:
Push the local Docker image to GCP Artifact Registry:
An example command could look like this: