2020-08-18 00:26:35 +08:00
|
|
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
2020-09-09 06:03:42 +08:00
|
|
|
name: Build and push Docker images
|
2020-08-18 00:26:35 +08:00
|
|
|
description: Build and push Docker images with Buildx
|
2020-08-16 06:36:41 +08:00
|
|
|
author: docker
|
2020-03-17 00:51:17 +08:00
|
|
|
branding:
|
|
|
|
icon: 'anchor'
|
|
|
|
color: 'blue'
|
2020-08-16 06:36:41 +08:00
|
|
|
|
2020-03-05 23:52:30 +08:00
|
|
|
inputs:
|
2022-01-31 18:47:45 +08:00
|
|
|
add-hosts:
|
|
|
|
description: "List of a customs host-to-IP mapping (e.g., docker:10.180.0.1)"
|
2022-01-31 01:33:31 +08:00
|
|
|
required: false
|
2021-04-06 19:54:58 +08:00
|
|
|
allow:
|
2021-11-16 14:19:27 +08:00
|
|
|
description: "List of extra privileged entitlement (e.g., network.host,security.insecure)"
|
2021-04-06 19:54:58 +08:00
|
|
|
required: false
|
|
|
|
build-args:
|
|
|
|
description: "List of build-time variables"
|
|
|
|
required: false
|
2020-08-16 11:53:50 +08:00
|
|
|
builder:
|
|
|
|
description: "Builder instance"
|
|
|
|
required: false
|
2021-04-06 19:54:58 +08:00
|
|
|
cache-from:
|
2021-11-16 14:19:27 +08:00
|
|
|
description: "List of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir)"
|
2021-04-06 19:54:58 +08:00
|
|
|
required: false
|
|
|
|
cache-to:
|
2021-11-16 14:19:27 +08:00
|
|
|
description: "List of cache export destinations for buildx (e.g., user/app:cache, type=local,dest=path/to/dir)"
|
|
|
|
required: false
|
|
|
|
cgroup-parent:
|
|
|
|
description: "Optional parent cgroup for the container used in the build"
|
2021-04-06 19:54:58 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
context:
|
|
|
|
description: "Build's context is the set of files located in the specified PATH or URL"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
file:
|
|
|
|
description: "Path to the Dockerfile"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
labels:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of metadata for an image"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2021-04-06 19:54:58 +08:00
|
|
|
load:
|
|
|
|
description: "Load is a shorthand for --output=type=docker"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
default: 'false'
|
2021-04-06 20:49:15 +08:00
|
|
|
network:
|
|
|
|
description: "Set the networking mode for the RUN instructions during build"
|
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
no-cache:
|
|
|
|
description: "Do not use cache when building the image"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
default: 'false'
|
2021-04-06 19:54:58 +08:00
|
|
|
outputs:
|
|
|
|
description: "List of output destinations (format: type=local,dest=path)"
|
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
platforms:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of target platforms for build"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2021-04-06 19:54:58 +08:00
|
|
|
pull:
|
|
|
|
description: "Always attempt to pull a newer version of the image"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
default: 'false'
|
|
|
|
push:
|
2020-08-16 23:18:08 +08:00
|
|
|
description: "Push is a shorthand for --output=type=registry"
|
2020-04-22 23:34:18 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
default: 'false'
|
2020-09-02 16:07:11 +08:00
|
|
|
secrets:
|
2021-11-16 14:19:27 +08:00
|
|
|
description: "List of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken)"
|
2020-09-02 16:07:11 +08:00
|
|
|
required: false
|
2021-02-16 18:56:02 +08:00
|
|
|
secret-files:
|
2021-11-16 14:19:27 +08:00
|
|
|
description: "List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt)"
|
|
|
|
required: false
|
|
|
|
shm-size:
|
|
|
|
description: "Size of /dev/shm (e.g., 2g)"
|
2020-09-23 02:49:18 +08:00
|
|
|
required: false
|
2020-09-11 07:23:49 +08:00
|
|
|
ssh:
|
2020-10-29 02:40:11 +08:00
|
|
|
description: "List of SSH agent socket or keys to expose to the build"
|
2020-09-11 07:23:49 +08:00
|
|
|
required: false
|
2021-04-06 19:54:58 +08:00
|
|
|
tags:
|
|
|
|
description: "List of tags"
|
|
|
|
required: false
|
|
|
|
target:
|
|
|
|
description: "Sets the target stage to build"
|
|
|
|
required: false
|
2021-11-16 14:19:27 +08:00
|
|
|
ulimit:
|
|
|
|
description: "Ulimit options (e.g., nofile=1024:1024)"
|
|
|
|
required: false
|
2021-02-16 18:56:02 +08:00
|
|
|
github-token:
|
|
|
|
description: "GitHub Token used to authenticate against a repository for Git context"
|
|
|
|
default: ${{ github.token }}
|
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
digest:
|
|
|
|
description: 'Image content-addressable identifier also called a digest'
|
2021-08-17 05:44:13 +08:00
|
|
|
metadata:
|
|
|
|
description: 'Build result metadata'
|
2020-08-16 06:36:41 +08:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'node12'
|
|
|
|
main: 'dist/index.js'
|
2020-09-02 16:07:11 +08:00
|
|
|
post: 'dist/index.js'
|