2020-08-15 18:36:41 -04:00
|
|
|
name: Docker Build and Push
|
|
|
|
description: Build and push Docker images
|
|
|
|
author: docker
|
2020-03-16 12:51:17 -04:00
|
|
|
branding:
|
|
|
|
icon: 'anchor'
|
|
|
|
color: 'blue'
|
2020-08-15 18:36:41 -04:00
|
|
|
|
2020-03-05 10:52:30 -05:00
|
|
|
inputs:
|
2020-08-15 23:53:50 -04:00
|
|
|
builder:
|
|
|
|
description: "Builder instance"
|
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
context:
|
|
|
|
description: "Build's context is the set of files located in the specified PATH or URL"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
default: '.'
|
|
|
|
file:
|
|
|
|
description: "Path to the Dockerfile"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
default: './Dockerfile'
|
|
|
|
build-args:
|
|
|
|
description: "Newline-delimited list of build-time variables"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
labels:
|
|
|
|
description: "Newline-delimited list of metadata for an image"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
tags:
|
|
|
|
description: "Newline-delimited list of tags"
|
2020-08-16 11:18:08 -04:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
pull:
|
|
|
|
description: "Always attempt to pull a newer version of the image"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
default: 'false'
|
|
|
|
target:
|
|
|
|
description: "Sets the target stage to build"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-16 01:07:06 -04:00
|
|
|
allow:
|
|
|
|
description: "Allow extra privileged entitlement (eg. network.host,security.insecure)"
|
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
no-cache:
|
|
|
|
description: "Do not use cache when building the image"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
default: 'false'
|
|
|
|
platforms:
|
|
|
|
description: "Comma-delimited list of target platforms for build"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
load:
|
2020-08-16 11:18:08 -04:00
|
|
|
description: "Load is a shorthand for --output=type=docker"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
default: 'false'
|
|
|
|
push:
|
2020-08-16 11:18:08 -04:00
|
|
|
description: "Push is a shorthand for --output=type=registry"
|
2020-04-22 11:34:18 -04:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
default: 'false'
|
|
|
|
outputs:
|
|
|
|
description: "Newline-delimited list of output destinations (format: type=local,dest=path)"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
cache-from:
|
|
|
|
description: "Newline-delimited list of external cache sources for buildx (eg. user/app:cache, type=local,src=path/to/dir)"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
cache-to:
|
|
|
|
description: "Newline-delimited list of cache export destinations for buildx (eg. user/app:cache, type=local,dest=path/to/dir)"
|
2020-03-05 10:52:30 -05:00
|
|
|
required: false
|
2020-08-16 16:31:37 -04:00
|
|
|
cache-github:
|
|
|
|
description: "Export all the layers of all intermediate steps in the GitHub cache"
|
|
|
|
required: false
|
|
|
|
default: 'false'
|
2020-08-16 11:18:08 -04:00
|
|
|
bake:
|
|
|
|
description: "Use bake as the high-level build command"
|
|
|
|
required: false
|
|
|
|
default: 'false'
|
|
|
|
bake-files:
|
|
|
|
description: "Newline-delimited list of bake definition files"
|
|
|
|
required: false
|
|
|
|
bake-targets:
|
|
|
|
description: "Newline-delimited list of bake targets"
|
|
|
|
required: false
|
2020-08-15 18:36:41 -04:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
digest:
|
|
|
|
description: 'Image content-addressable identifier also called a digest'
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'node12'
|
|
|
|
main: 'dist/index.js'
|
2020-08-16 16:38:03 -04:00
|
|
|
post: 'dist/index.js'
|