How docker/setup-buildx-action works
This GitHub Action configures a Docker Buildx builder for later workflow steps. Its main path reads action inputs, prepares or locates Buildx, creates or extends a builder, boots it, and exposes builder information. Configuration includes driver options, BuildKit daemon settings, platforms, endpoints, and appended nodes; cleanup is handled through GitHub Action state. The excerpts show orchestration and argument construction, but not every output or integration detail, so those connections are limited to documented behavior.
Main entry points: main.ts Action orchestration · context.ts Builder configuration · state-helper.ts Lifecycle state
Components 12
Action entry
- Action orchestration
src/main.ts - Input parsing
src/context.ts - Lifecycle state
src/state-helper.ts
Builder setup
- Buildx availability
src/main.ts - Builder configuration
src/context.ts - Builder creation
src/main.ts - Node append
src/main.ts
Runtime lifecycle
- Docker environment
- BuildKit nodes
- Post-job cleanup
src/main.ts
Other components
- Workflow step
- Configured builder
Connections 15
- Workflow step → Action orchestration: invokes
README.md - Action orchestration → Input parsing: reads inputs
src/main.ts - Input parsing → Builder configuration: builds arguments
src/context.ts - Action orchestration → Buildx availability: checks or installs
src/main.ts - Action orchestration → Docker environment: inspects and pulls
src/main.ts - Action orchestration → Builder creation: creates builder
src/main.ts - Builder creation → Builder configuration: requests arguments
src/main.ts - Action orchestration → Node append: appends nodes
src/main.ts - Node append → Builder configuration: builds append arguments
src/main.ts - Action orchestration → BuildKit nodes: boots and checks versions
src/main.ts - Action orchestration → Lifecycle state: saves cleanup state
src/main.ts - Lifecycle state → Post-job cleanup: provides post-job state
src/main.ts - Post-job cleanup → Docker environment: removes resources
src/main.ts - Action orchestration → Configured builder: provides builder
README.md - Configured builder → Workflow step: used by later steps
README.md