2020-03-06 09:15:16 +00:00
|
|
|
name: Build and push Docker images
|
|
|
|
description: Builds and pushes Docker images and will log in to a Docker registry if required
|
2020-03-05 15:52:30 +00:00
|
|
|
author: Docker
|
2020-03-16 16:51:17 +00:00
|
|
|
branding:
|
|
|
|
icon: 'anchor'
|
|
|
|
color: 'blue'
|
2020-03-05 15:52:30 +00:00
|
|
|
runs:
|
|
|
|
using: docker
|
2020-03-23 11:23:53 +00:00
|
|
|
image: docker://docker/github-actions:v1
|
2020-03-05 15:52:30 +00:00
|
|
|
args:
|
|
|
|
- build-push
|
|
|
|
inputs:
|
|
|
|
username:
|
2020-03-06 09:15:16 +00:00
|
|
|
description: Username used to log in to a Docker registry. If not set then no login will occur
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
password:
|
2020-03-06 15:01:36 +00:00
|
|
|
description: Password or personal access token used to log in to a Docker registry. If not set then no login will occur
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
registry:
|
2020-03-06 09:15:16 +00:00
|
|
|
description: Server address of Docker registry. If not set then will default to Docker Hub
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
repository:
|
2020-09-08 21:08:47 +00:00
|
|
|
deprecationMessage: 'v2 beta is now available through docker/build-push-action@v2'
|
2020-03-05 15:52:30 +00:00
|
|
|
description: Docker repository to tag the image with
|
|
|
|
required: true
|
|
|
|
tags:
|
2020-03-05 16:28:11 +00:00
|
|
|
description: Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
tag_with_ref:
|
|
|
|
description: Automatically tags the built image with the git reference as per the readme
|
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
tag_with_sha:
|
2020-03-06 15:01:36 +00:00
|
|
|
description: Automatically tags the built image with the git short SHA as per the readme
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
path:
|
2020-03-20 13:15:06 +00:00
|
|
|
description: Path to the build context
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
default: "."
|
|
|
|
dockerfile:
|
2020-03-20 13:15:06 +00:00
|
|
|
description: Path to the Dockerfile (Default is '{path}/Dockerfile')
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
target:
|
2020-03-06 09:15:16 +00:00
|
|
|
description: Sets the target stage to build
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
always_pull:
|
|
|
|
description: Always attempt to pull a newer version of the image
|
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
build_args:
|
2020-03-06 13:55:12 +00:00
|
|
|
description: Comma-delimited list of build-time variables
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
2020-04-22 15:34:18 +00:00
|
|
|
cache_froms:
|
|
|
|
description: Comma-delimited list of images to consider as cache sources
|
|
|
|
required: false
|
2020-03-05 15:52:30 +00:00
|
|
|
labels:
|
2020-03-05 16:28:11 +00:00
|
|
|
description: Comma-delimited list of labels to add to the built image
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
add_git_labels:
|
2020-03-06 13:51:14 +00:00
|
|
|
description: Adds labels with git repository information to the built image
|
2020-03-05 15:52:30 +00:00
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
push:
|
|
|
|
description: Whether to push the image
|
|
|
|
required: false
|
|
|
|
default: true
|