---
source: https://iinventedlight.com/library/notes/docker-build-github-actions.md
title: "Docker Build GitHub Actions: GitHub Builder and the individual Docker actions"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache License 2.0 (Docker, Inc.); Apache License 2.0 (Docker, Inc.); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Docker Build GitHub Actions; Docker, Inc., Docker Build GitHub Actions (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-27
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-27
as_of: 2026-11-27
confidence: medium
untested: "Not reproduced (2026-11-27). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: docker-build-github-actions"
tags: [docker, github-actions, buildkit, buildx, ci]
client: Librarian
sources:
  - id: S1
    title: "Docker Build GitHub Actions"
    publisher: Docker, Inc.
    url: https://docs.docker.com/build/ci/github-actions/
    accessed: 2026-11-27
    license: "Apache License 2.0"
  - id: S2
    title: "Docker Build GitHub Actions (source)"
    publisher: Docker, Inc.
    url: https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/ci/github-actions/_index.md
    accessed: 2026-11-27
    license: "Apache License 2.0"
---
# Docker Build GitHub Actions: GitHub Builder and the individual Docker actions
**Answer:** Docker's GitHub Actions docs describe GitHub Builder reusable workflows for building and publishing images, plus individual actions when you need custom job steps.

## GitHub Builder

GitHub Actions automates a build, test, and deployment pipeline. Docker GitHub Builder is a Docker-maintained reusable workflow that builds and publishes images.

The reusable workflow takes care of Buildx setup, platform distribution, metadata, and signing. Switch to individual actions when a job needs steps the reusable workflow does not expose.

Start with a GitHub repository that has a Dockerfile at its root, and a Docker Hub token that can push images.

Store the token as the DOCKERHUB_TOKEN secret and the username as the DOCKERHUB_USERNAME variable.

The sample workflow lives at .github/workflows/docker-ci.yml and calls docker/github-builder's build.yml. It pushes when the event is not a pull request.

set-meta-labels and set-meta-annotations apply generated labels and annotations. meta-images names the image.

When an image is pushed, GitHub Builder signs attestation manifests. The build uses the repository at the Git reference that triggered the run, so files changed in a caller job are omitted.

## Individual actions

By default the build action takes a Git context, so BuildKit pulls the repo at the triggering Git reference. Use checkout with a path context when earlier steps change files the build needs.

Available actions include Build and push, Buildx Bake, Login, Setup Buildx, Metadata, Setup Compose, Setup Docker, Setup QEMU, and Scout.

The metadata action derives tags, labels, and annotations from Git and GitHub events. Setup QEMU supports multi-platform builds. Scout analyzes images for vulnerabilities.

## See also

- [docker-build-cache](https://iinventedlight.com/library/notes/docker-build-cache/)
- [docker-build-multi-platform](https://iinventedlight.com/library/notes/docker-build-multi-platform/)
- [docker-build-attestations](https://iinventedlight.com/library/notes/docker-build-attestations/)

## Claims

- id: C1
  claim: GitHub Actions automates a build, test, and deployment pipeline.
  source: S1
  evidence: "GitHub Actions automates your build, test, and deployment pipeline"

- id: C2
  claim: GitHub Builder manages Buildx setup, platform distribution, metadata, and signing.
  source: S2
  evidence: "GitHub Builder manages Buildx setup,"

- id: C3
  claim: The build action uses Git context by default, fetching the repo at the triggering reference.
  source: S2
  evidence: "The build action uses Git context by default"

## Sources

- [S1] Docker Build GitHub Actions. Docker, Inc.. https://docs.docker.com/build/ci/github-actions/ . License: Apache License 2.0. Accessed 2026-11-27.

- [S2] Docker Build GitHub Actions (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/manuals/build/ci/github-actions/_index.md . License: Apache License 2.0. Accessed 2026-11-27.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Docker Build GitHub Actions; Docker, Inc., Docker Build GitHub Actions (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
