Docker CLI
Build Docker images from source, apply dynamic tags, and push to JFrog, Nexus, ECR, or ACR — directly within an Opsera pipeline step, no shell scripting required.
Build | Push | Dynamic tagging | Multi-registry
Hummingbird AI is available for this pipeline. Contact [email protected] to enable AI summaries and remediation suggestions.
Prerequisites
Opsera account with pipeline creation permissions
SCM tool registered in Tool Registry (GitHub, GitLab, Bitbucket, or Azure DevOps)
Target registry tool registered in Tool Registry (JFrog, Nexus, ECR, or ACR)
Sensitive tokens stored as global parameters in Tool Registry to redact them from logs
Pipeline setup
Create the pipeline step
Create the pipeline step
Log in → Pipeline → open or create a pipeline → click +.
In Step Setup: enter a name, set Tool to Docker CLI. Save.
Configure SCM source
Choose SCM Type (GitHub / GitLab / Bitbucket / AzureDevOps), then select Account, Repository, Branch, and optionally a Git File Path
Enable Docker Build
Toggle Enable Docker Build on. Enter Docker Name and optional Input File Name. Use Enable Dependency to inject build-time dependencies with parameter mapping.
Configure dynamic tagging
Toggle Dynamic Tag on. Choose tag type: Branch Name, Build Number, or Commit SHA. For SHA, set Trim Direction (First N / Last N) and Character Limit. Toggle Add Multiple Docker Tags to associate additional tags — select Custom Tag for a free-form label.
Enable Docker Push
Toggle Enable Docker Push. Choose Registry Type (JFrog / Nexus / ECR / ACR), then select Tool Name, Repository Configuration Type, and Repository.
Run and Monitor
Click Start Pipeline. View logs via Summary → Pipeline Logs → Console Output.
Docker Name
Name of the Docker image to build
Dynamic Tag Type
Auto-generates tag from Branch Name, Build Number, or Commit SHA
Commit SHA Trim Direction
First N or Last N characters of the SHA to use as tag
Registry Type
Target push registry: JFrog, Nexus, ECR, or ACR
Build Arguments Mapping
Map pipeline parameters to Docker --build-arg key-value pairs
Points to remember
Always store registry credentials and tokens as global parameters — this ensures they are masked in pipeline execution logs.
The
Dynamic TagandAdd Multiple Docker Tagstoggles can be used together — dynamic tag handles the primary tag while multiple tags adds static aliases likelatest.When using Commit SHA as a tag, limiting to 7–8 characters is the standard Git convention for short SHAs.
Enable
Enable Dependencyif your build process requires specific runtime tools injected before Docker build execution.
FAQs
Can I push multiple registries in one step?
Not within a single push toggle — but you can add multiple Docker CLI steps in the same pipeline, each configured for a different registry.
Last updated

