mirror of
https://github.com/docker/build-push-action.git
synced 2024-12-28 09:38:14 +08:00
c24a92baa4
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
79 lines
2.3 KiB
YAML
79 lines
2.3 KiB
YAML
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
|
name: Build and push Docker images
|
|
description: Build and push Docker images with Buildx
|
|
author: docker
|
|
branding:
|
|
icon: 'anchor'
|
|
color: 'blue'
|
|
|
|
inputs:
|
|
builder:
|
|
description: "Builder instance"
|
|
required: false
|
|
context:
|
|
description: "Build's context is the set of files located in the specified PATH or URL"
|
|
required: false
|
|
file:
|
|
description: "Path to the Dockerfile"
|
|
required: false
|
|
default: './Dockerfile'
|
|
build-args:
|
|
description: "List of build-time variables"
|
|
required: false
|
|
labels:
|
|
description: "List of metadata for an image"
|
|
required: false
|
|
tags:
|
|
description: "List of tags"
|
|
required: false
|
|
pull:
|
|
description: "Always attempt to pull a newer version of the image"
|
|
required: false
|
|
default: 'false'
|
|
target:
|
|
description: "Sets the target stage to build"
|
|
required: false
|
|
allow:
|
|
description: "List of extra privileged entitlement (eg. network.host,security.insecure)"
|
|
required: false
|
|
no-cache:
|
|
description: "Do not use cache when building the image"
|
|
required: false
|
|
default: 'false'
|
|
platforms:
|
|
description: "List of target platforms for build"
|
|
required: false
|
|
load:
|
|
description: "Load is a shorthand for --output=type=docker"
|
|
required: false
|
|
default: 'false'
|
|
push:
|
|
description: "Push is a shorthand for --output=type=registry"
|
|
required: false
|
|
default: 'false'
|
|
outputs:
|
|
description: "List of output destinations (format: type=local,dest=path)"
|
|
required: false
|
|
cache-from:
|
|
description: "List of external cache sources for buildx (eg. user/app:cache, type=local,src=path/to/dir)"
|
|
required: false
|
|
cache-to:
|
|
description: "List of cache export destinations for buildx (eg. user/app:cache, type=local,dest=path/to/dir)"
|
|
required: false
|
|
secrets:
|
|
description: "List of secrets to expose to the build (eg. key=value, GIT_AUTH_TOKEN=mytoken)"
|
|
required: false
|
|
github-token:
|
|
description: "GitHub Token used to authenticate against a repository for Git context"
|
|
default: ${{ github.token }}
|
|
required: false
|
|
|
|
outputs:
|
|
digest:
|
|
description: 'Image content-addressable identifier also called a digest'
|
|
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|
|
post: 'dist/index.js'
|