mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-20 06:00:06 +08:00
login-action and setup-buildx-action used a mutable version tag while every other action in the repo is pinned to a commit SHA. Pin both, and align login-action to the same v4 SHA already used in ci-image.yml. Use the full resolved version in the trailing comment (v3.12.0) to match the more common convention used elsewhere in .github/.
32 lines
1.2 KiB
YAML
32 lines
1.2 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@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
|
with:
|
|
name: ${{ inputs.name }}
|
|
driver: docker-container
|
|
platforms: linux/amd64,linux/arm64
|
|
buildkitd-config: ${{ inputs.buildkitd-config }}
|