mirror of
https://github.com/docker/setup-buildx-action.git
synced 2024-11-18 01:55:41 +01:00
d0d9a72195
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
77 lines
2.5 KiB
YAML
77 lines
2.5 KiB
YAML
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
|
name: 'Docker Setup Buildx'
|
|
description: 'Set up Docker Buildx'
|
|
author: 'docker'
|
|
branding:
|
|
icon: 'anchor'
|
|
color: 'blue'
|
|
|
|
inputs:
|
|
version:
|
|
description: 'Buildx version. (eg. v0.3.0)'
|
|
required: false
|
|
driver:
|
|
description: 'Sets the builder driver to be used'
|
|
default: 'docker-container'
|
|
required: false
|
|
driver-opts:
|
|
description: 'List of additional driver-specific options. (eg. image=moby/buildkit:master)'
|
|
required: false
|
|
buildkitd-flags:
|
|
description: 'Flags for buildkitd daemon'
|
|
default: '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
|
|
required: false
|
|
install:
|
|
description: 'Sets up docker build command as an alias to docker buildx build'
|
|
default: 'false'
|
|
required: false
|
|
use:
|
|
description: 'Switch to this builder instance'
|
|
default: 'true'
|
|
required: false
|
|
endpoint:
|
|
description: 'Optional address for docker socket or context from `docker context ls`'
|
|
required: false
|
|
platforms:
|
|
description: 'Fixed platforms for current node. If not empty, values take priority over the detected ones'
|
|
required: false
|
|
config:
|
|
description: 'BuildKit config file'
|
|
required: false
|
|
config-inline:
|
|
description: 'Inline BuildKit config'
|
|
required: false
|
|
append:
|
|
description: 'Append additional nodes to the builder'
|
|
required: false
|
|
github_token:
|
|
# https://github.com/actions/setup-go/blob/21459d0b7b1d63741429b748885bf5a4974593b4/action.yml#L12-L14
|
|
description: >
|
|
Used to verifiy the Git tag exists on docker/buildx repo. Since there's a
|
|
default, this is typically not supplied by the user. When running this
|
|
action on github.com, the default value is sufficient. When running on
|
|
GHES, you can pass a personal access token for github.com if you are
|
|
experiencing rate limiting.
|
|
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
|
|
|
|
outputs:
|
|
name:
|
|
description: 'Builder name'
|
|
driver:
|
|
description: 'Builder driver'
|
|
platforms:
|
|
description: 'Builder node platforms (preferred or available)'
|
|
nodes:
|
|
description: 'Builder nodes metadata'
|
|
endpoint:
|
|
description: 'Builder node endpoint (deprecated, use nodes output instead)'
|
|
status:
|
|
description: 'Builder node status (deprecated, use nodes output instead)'
|
|
flags:
|
|
description: 'Builder node flags (deprecated, use nodes output instead)'
|
|
|
|
runs:
|
|
using: 'node16'
|
|
main: 'dist/index.js'
|
|
post: 'dist/index.js'
|