All languages

Docker

You're viewing a free preview. Sign in free to read every script.

Why this exists Every pipeline that ships containers has the same middle step: authenticate to a registry, build the image, push it, and tell the next stage what was pushed. It is also where pipelines are most often…

CI Image Build, Tag & Push Script

The build, push and verify step of a CI job as one script: log in with a secret over stdin, build and push with retries, read the pushed digest, confirm the registry holds it, hand an immutable image reference to the deploy stage and always log out, tested against a real private registry with passwords, including a failed login.

Sign in free to read this script, along with the rest of the library.

Sign in free