2020-08-18 23:40:31 +08:00
|
|
|
# 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:
|
2020-09-06 22:37:52 +08:00
|
|
|
description: 'Buildx version. (eg. v0.3.0)'
|
2020-08-18 23:40:31 +08:00
|
|
|
required: false
|
|
|
|
driver:
|
|
|
|
description: 'Sets the builder driver to be used'
|
|
|
|
default: 'docker-container'
|
|
|
|
required: false
|
2020-09-03 22:23:15 +08:00
|
|
|
driver-opts:
|
2020-09-06 22:37:52 +08:00
|
|
|
description: 'List of additional driver-specific options. (eg. image=moby/buildkit:master)'
|
2020-08-18 23:40:31 +08:00
|
|
|
required: false
|
|
|
|
buildkitd-flags:
|
2024-03-01 15:57:18 +08:00
|
|
|
description: 'BuildKit daemon flags'
|
2020-09-04 02:38:04 +08:00
|
|
|
default: '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
|
2020-08-18 23:40:31 +08:00
|
|
|
required: false
|
2024-03-01 15:57:18 +08:00
|
|
|
buildkitd-config:
|
|
|
|
description: 'BuildKit daemon config file'
|
|
|
|
required: false
|
|
|
|
buildkitd-config-inline:
|
|
|
|
description: 'Inline BuildKit daemon config'
|
|
|
|
required: false
|
2020-08-18 23:40:31 +08:00
|
|
|
install:
|
2022-05-27 06:18:23 +08:00
|
|
|
description: 'Sets up docker build command as an alias to docker buildx build'
|
2020-08-18 23:40:31 +08:00
|
|
|
default: 'false'
|
|
|
|
required: false
|
|
|
|
use:
|
|
|
|
description: 'Switch to this builder instance'
|
|
|
|
default: 'true'
|
|
|
|
required: false
|
2020-09-08 21:52:09 +08:00
|
|
|
endpoint:
|
2020-09-09 00:22:35 +08:00
|
|
|
description: 'Optional address for docker socket or context from `docker context ls`'
|
2020-09-06 22:37:52 +08:00
|
|
|
required: false
|
2022-09-22 17:54:00 +08:00
|
|
|
platforms:
|
|
|
|
description: 'Fixed platforms for current node. If not empty, values take priority over the detected ones'
|
|
|
|
required: false
|
2022-09-19 17:34:47 +08:00
|
|
|
append:
|
|
|
|
description: 'Append additional nodes to the builder'
|
|
|
|
required: false
|
2024-02-23 17:51:47 +08:00
|
|
|
cache-binary:
|
|
|
|
description: 'Cache buildx binary to GitHub Actions cache backend'
|
|
|
|
default: 'true'
|
|
|
|
required: false
|
2023-03-03 18:56:21 +08:00
|
|
|
cleanup:
|
|
|
|
description: 'Cleanup temp files and remove builder at the end of a job'
|
|
|
|
default: 'true'
|
|
|
|
required: false
|
2024-07-05 19:17:52 +08:00
|
|
|
# TODO: remove deprecated config and config-inline inputs
|
2024-03-01 15:57:18 +08:00
|
|
|
config:
|
|
|
|
description: 'BuildKit daemon config file'
|
|
|
|
deprecationMessage: 'Use buildkitd-config instead'
|
|
|
|
required: false
|
|
|
|
config-inline:
|
|
|
|
description: 'Inline BuildKit daemon config'
|
|
|
|
deprecationMessage: 'Use buildkitd-config-inline instead'
|
|
|
|
required: false
|
2020-08-18 23:40:31 +08:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
name:
|
2021-04-24 00:14:38 +08:00
|
|
|
description: 'Builder name'
|
|
|
|
driver:
|
|
|
|
description: 'Builder driver'
|
2022-09-18 08:24:38 +08:00
|
|
|
platforms:
|
|
|
|
description: 'Builder node platforms (preferred or available)'
|
|
|
|
nodes:
|
|
|
|
description: 'Builder nodes metadata'
|
2021-04-24 00:14:38 +08:00
|
|
|
endpoint:
|
2022-09-18 08:24:38 +08:00
|
|
|
description: 'Builder node endpoint (deprecated, use nodes output instead)'
|
2021-04-24 00:14:38 +08:00
|
|
|
status:
|
2022-09-18 08:24:38 +08:00
|
|
|
description: 'Builder node status (deprecated, use nodes output instead)'
|
2021-04-24 00:14:38 +08:00
|
|
|
flags:
|
2022-09-18 08:24:38 +08:00
|
|
|
description: 'Builder node flags (deprecated, use nodes output instead)'
|
2020-08-18 23:40:31 +08:00
|
|
|
|
|
|
|
runs:
|
2023-09-07 18:43:56 +08:00
|
|
|
using: 'node20'
|
2020-08-18 23:40:31 +08:00
|
|
|
main: 'dist/index.js'
|
|
|
|
post: 'dist/index.js'
|