Skip to content

A CI/CD pipeline with Docker

Select an icon to see what it is.

Step 4 of 6

Log in and push

The runner logs in to registry.example.com with credentials stored as CI secrets, never written in the repository. It then pushes the commit tag, and often also a moving tag such as latest or 1.0. The push sends the blobs and then the manifest, as in the tag and push lesson.

$ docker push registry.example.com/shop/web:3f9a1c2

Login

echo "$REGISTRY_PASSWORD" | docker login registry.example.com -u "$REGISTRY_USER" --password-stdin
the password comes from a CI secret