2020-08-18 17:40:31 +02: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 16:37:52 +02:00
|
|
|
description: 'Buildx version. (eg. v0.3.0)'
|
2020-08-18 17:40:31 +02:00
|
|
|
required: false
|
|
|
|
driver:
|
|
|
|
description: 'Sets the builder driver to be used'
|
|
|
|
default: 'docker-container'
|
|
|
|
required: false
|
2020-09-03 16:23:15 +02:00
|
|
|
driver-opts:
|
2020-09-06 16:37:52 +02:00
|
|
|
description: 'List of additional driver-specific options. (eg. image=moby/buildkit:master)'
|
2020-08-18 17:40:31 +02:00
|
|
|
required: false
|
|
|
|
buildkitd-flags:
|
|
|
|
description: 'Flags for buildkitd daemon'
|
2020-09-03 20:38:04 +02:00
|
|
|
default: '--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host'
|
2020-08-18 17:40:31 +02:00
|
|
|
required: false
|
|
|
|
install:
|
2022-05-27 00:18:23 +02:00
|
|
|
description: 'Sets up docker build command as an alias to docker buildx build'
|
2020-08-18 17:40:31 +02:00
|
|
|
default: 'false'
|
|
|
|
required: false
|
|
|
|
use:
|
|
|
|
description: 'Switch to this builder instance'
|
|
|
|
default: 'true'
|
|
|
|
required: false
|
2020-09-08 15:52:09 +02:00
|
|
|
endpoint:
|
2020-09-08 18:22:35 +02:00
|
|
|
description: 'Optional address for docker socket or context from `docker context ls`'
|
2020-09-06 16:37:52 +02:00
|
|
|
required: false
|
2022-09-22 11:54:00 +02:00
|
|
|
platforms:
|
|
|
|
description: 'Fixed platforms for current node. If not empty, values take priority over the detected ones'
|
|
|
|
required: false
|
2021-04-21 19:37:54 +02:00
|
|
|
config:
|
2021-04-23 18:14:38 +02:00
|
|
|
description: 'BuildKit config file'
|
2021-04-21 19:37:54 +02:00
|
|
|
required: false
|
2021-09-03 22:21:20 +02:00
|
|
|
config-inline:
|
|
|
|
description: 'Inline BuildKit config'
|
|
|
|
required: false
|
2022-09-19 11:34:47 +02:00
|
|
|
append:
|
|
|
|
description: 'Append additional nodes to the builder'
|
|
|
|
required: false
|
2023-01-28 01:43:10 +01:00
|
|
|
github_token:
|
2023-01-28 02:45:17 +01:00
|
|
|
# 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 || '' }}
|
2020-08-18 17:40:31 +02:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
name:
|
2021-04-23 18:14:38 +02:00
|
|
|
description: 'Builder name'
|
|
|
|
driver:
|
|
|
|
description: 'Builder driver'
|
2022-09-18 02:24:38 +02:00
|
|
|
platforms:
|
|
|
|
description: 'Builder node platforms (preferred or available)'
|
|
|
|
nodes:
|
|
|
|
description: 'Builder nodes metadata'
|
2021-04-23 18:14:38 +02:00
|
|
|
endpoint:
|
2022-09-18 02:24:38 +02:00
|
|
|
description: 'Builder node endpoint (deprecated, use nodes output instead)'
|
2021-04-23 18:14:38 +02:00
|
|
|
status:
|
2022-09-18 02:24:38 +02:00
|
|
|
description: 'Builder node status (deprecated, use nodes output instead)'
|
2021-04-23 18:14:38 +02:00
|
|
|
flags:
|
2022-09-18 02:24:38 +02:00
|
|
|
description: 'Builder node flags (deprecated, use nodes output instead)'
|
2020-08-18 17:40:31 +02:00
|
|
|
|
|
|
|
runs:
|
2022-03-21 13:50:20 +01:00
|
|
|
using: 'node16'
|
2020-08-18 17:40:31 +02:00
|
|
|
main: 'dist/index.js'
|
|
|
|
post: 'dist/index.js'
|