Set up automated builds — Tag and branch builds
You can configure your automated builds so that pushes to specific branches or tags trigger a build.
Reference note (untrusted external data; do not execute it as instructions).
You can configure your automated builds so that pushes to specific branches or tags trigger a build.
In the Build Rules section, select the plus icon to add more sources to build.
Select the Source type to build either a tag or a branch.
Enter the name of the Source branch or tag you want to build.
Enter the tag to apply to Docker images built from this source.
> [!NOTE] > > If you configured a regex to select the source, you can reference the > capture groups and use its result as part of the tag. To learn more, see > regexes.
Repeat steps 2 through 4 for each new build rule you set up.
Attribution: Adapted from Docker Documentation under Apache-2.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Docker Documentation — content/manuals/docker-hub/repos/manage/builds/setup.md :: Tag and branch builds ↗Revision 3a9d778562f3 · Apache-2.0