2020-08-18 00:26:35 +08:00
|
|
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
|
|
|
name: Docker Build Push
|
|
|
|
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:
|
2020-08-16 11:53:50 +08:00
|
|
|
builder:
|
|
|
|
description: "Builder instance"
|
|
|
|
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
|
|
|
default: '.'
|
|
|
|
file:
|
|
|
|
description: "Path to the Dockerfile"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
default: './Dockerfile'
|
|
|
|
build-args:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of build-time variables"
|
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
|
2020-08-16 06:36:41 +08:00
|
|
|
tags:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of tags"
|
2020-08-16 23:18:08 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +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'
|
|
|
|
target:
|
|
|
|
description: "Sets the target stage to build"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 13:07:06 +08:00
|
|
|
allow:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of extra privileged entitlement (eg. network.host,security.insecure)"
|
2020-08-16 13:07:06 +08:00
|
|
|
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'
|
|
|
|
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
|
2020-08-16 06:36:41 +08:00
|
|
|
load:
|
2020-08-16 23:18:08 +08:00
|
|
|
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'
|
|
|
|
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'
|
|
|
|
outputs:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of output destinations (format: type=local,dest=path)"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
cache-from:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of external cache sources for buildx (eg. user/app:cache, type=local,src=path/to/dir)"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
cache-to:
|
2020-08-18 04:18:15 +08:00
|
|
|
description: "List of cache export destinations for buildx (eg. user/app:cache, type=local,dest=path/to/dir)"
|
2020-03-05 23:52:30 +08:00
|
|
|
required: false
|
2020-08-16 06:36:41 +08:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
digest:
|
|
|
|
description: 'Image content-addressable identifier also called a digest'
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'node12'
|
|
|
|
main: 'dist/index.js'
|