1
0
Files
build-push-action/action.yml
T

89 lines
2.7 KiB
YAML
Raw Normal View History

# https://help.github.com/en/articles/metadata-syntax-for-github-actions
2020-09-09 00:03:42 +02:00
name: Build and push Docker images
description: Build and push Docker images with Buildx
2020-08-16 00:36:41 +02:00
author: docker
2020-03-16 16:51:17 +00:00
branding:
icon: 'anchor'
color: 'blue'
2020-08-16 00:36:41 +02:00
2020-03-05 15:52:30 +00:00
inputs:
2021-04-06 13:54:58 +02:00
allow:
description: "List of extra privileged entitlement (eg. network.host,security.insecure)"
required: false
build-args:
description: "List of build-time variables"
required: false
2020-08-16 05:53:50 +02:00
builder:
description: "Builder instance"
required: false
2021-04-06 13:54:58 +02:00
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
2020-08-16 00:36:41 +02:00
context:
description: "Build's context is the set of files located in the specified PATH or URL"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
file:
description: "Path to the Dockerfile"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
labels:
2020-08-17 22:18:15 +02:00
description: "List of metadata for an image"
2020-03-05 15:52:30 +00:00
required: false
2021-04-06 13:54:58 +02:00
load:
description: "Load is a shorthand for --output=type=docker"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
default: 'false'
2021-04-06 14:49:15 +02:00
network:
description: "Set the networking mode for the RUN instructions during build"
required: false
2020-08-16 00:36:41 +02:00
no-cache:
description: "Do not use cache when building the image"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
default: 'false'
2021-04-06 13:54:58 +02:00
outputs:
description: "List of output destinations (format: type=local,dest=path)"
required: false
2020-08-16 00:36:41 +02:00
platforms:
2020-08-17 22:18:15 +02:00
description: "List of target platforms for build"
2020-03-05 15:52:30 +00:00
required: false
2021-04-06 13:54:58 +02:00
pull:
description: "Always attempt to pull a newer version of the image"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
default: 'false'
push:
description: "Push is a shorthand for --output=type=registry"
required: false
2020-08-16 00:36:41 +02:00
default: 'false'
2020-09-02 10:07:11 +02:00
secrets:
2021-02-16 11:56:02 +01:00
description: "List of secrets to expose to the build (eg. key=string, GIT_AUTH_TOKEN=mytoken)"
2020-09-02 10:07:11 +02:00
required: false
2021-02-16 11:56:02 +01:00
secret-files:
description: "List of secret files to expose to the build (eg. key=filename, MY_SECRET=./secret.txt)"
required: false
2020-09-11 11:23:49 +12:00
ssh:
description: "List of SSH agent socket or keys to expose to the build"
2020-09-11 11:23:49 +12:00
required: false
2021-04-06 13:54:58 +02:00
tags:
description: "List of tags"
required: false
target:
description: "Sets the target stage to build"
required: false
2021-02-16 11:56:02 +01:00
github-token:
description: "GitHub Token used to authenticate against a repository for Git context"
default: ${{ github.token }}
required: false
2020-08-16 00:36:41 +02:00
outputs:
digest:
description: 'Image content-addressable identifier also called a digest'
2021-08-16 23:44:13 +02:00
metadata:
description: 'Build result metadata'
2020-08-16 00:36:41 +02:00
runs:
using: 'node12'
main: 'dist/index.js'
2020-09-02 10:07:11 +02:00
post: 'dist/index.js'