Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 994 Bytes

push-images.md

File metadata and controls

33 lines (23 loc) · 994 Bytes
slug title sidebar_label
push-images
Push images to Harbor
Push Images

:::info For this lab, Harbor needs to be activated and the cluster needs to be configured with trusted certificates (like Let's Encrypt using production certificate). :::

Login to Harbor

To be able to push images to Harbor, you'll need a robot account with push permissions. Teams are offered the option to download the Docker config for their team's private registry in Harbor. In the left menu you will see the option Download DOCKERCFG. Click on it to download the credentials.

harbor-projects

When you have downloaded the docker config then run docker login:

docker login -u 'otomi-team-<team-name>-push' -p <token> harbor.<your-domain>

Build and tag your image:

docker build -t harbor.<your-domain>/<team-name>/<image-name>:<tag> .

Push the image to Harbor:

docker push harbor.<your-domain>/<team-name>/<image-name>:<tag>