Files
2026-05-08 12:20:42 -05:00

32 lines
1.1 KiB
YAML

name: Setup Docker Buildx
description: >
Create a Docker Buildx builder on the local docker-container driver. Pair
with cache-to/cache-from=type=gha on build steps for persistence. Works on
nv-gha-runners; no EKS BuildKit service is required.
Cleanup is automatic when the job finishes (docker/setup-buildx-action default).
inputs:
name:
description: Builder instance name
default: openshell
buildkitd-config:
description: >
Path to a buildkitd.toml to configure the builder with (e.g. the
nv-gha-runners Docker Hub mirror at /etc/buildkit/buildkitd.toml).
Must be readable *from where this action runs* — in a containerized
job that means the caller must bind-mount the host path into the job
container (e.g. `volumes: [/etc/buildkit:/etc/buildkit:ro]`). Empty
disables the config (default).
default: ""
runs:
using: composite
steps:
- name: Set up Docker Buildx (local)
uses: docker/setup-buildx-action@v3
with:
name: ${{ inputs.name }}
driver: docker-container
platforms: linux/amd64,linux/arm64
buildkitd-config: ${{ inputs.buildkitd-config }}