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

69 lines
2.0 KiB
YAML
Raw Normal View History

2020-08-16 00:36:41 +02:00
name: Docker Build and Push
description: Build and push Docker images
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:
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
default: '.'
file:
description: "Path to the Dockerfile"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
default: './Dockerfile'
build-args:
description: "Newline-delimited list of build-time variables"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
labels:
description: "Newline-delimited list of metadata for an image"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
tags:
description: "Newline-delimited list of tags"
required: true
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'
target:
description: "Sets the target stage to build"
2020-03-05 15:52:30 +00:00
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'
builder:
description: "Builder instance"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
platforms:
description: "Comma-delimited list of target platforms for build"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
load:
description: "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'
push:
description: "Whether to push the built image (shorthand for --output=type=registry if buildx used)"
required: false
2020-08-16 00:36:41 +02:00
default: 'false'
outputs:
description: "Newline-delimited list of output destinations (format: type=local,dest=path)"
2020-03-05 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02: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 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02: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 15:52:30 +00:00
required: false
2020-08-16 00:36:41 +02:00
outputs:
digest:
description: 'Image content-addressable identifier also called a digest'
runs:
using: 'node12'
main: 'dist/index.js'
post: 'dist/index.js'