2020-03-06 10:15:16 +01: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 16:52:30 +01:00
|
|
|
author: Docker
|
2020-03-16 17:51:17 +01:00
|
|
|
branding:
|
|
|
|
icon: 'anchor'
|
|
|
|
color: 'blue'
|
2020-03-05 16:52:30 +01:00
|
|
|
runs:
|
|
|
|
using: docker
|
2020-03-23 12:23:53 +01:00
|
|
|
image: docker://docker/github-actions:v1
|
2020-03-05 16:52:30 +01:00
|
|
|
args:
|
|
|
|
- build-push
|
|
|
|
inputs:
|
|
|
|
username:
|
2020-03-06 10:15:16 +01:00
|
|
|
description: Username used to log in to a Docker registry. If not set then no login will occur
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
password:
|
2020-03-06 16:01:36 +01: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 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
registry:
|
2020-03-06 10:15:16 +01:00
|
|
|
description: Server address of Docker registry. If not set then will default to Docker Hub
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
repository:
|
2020-10-22 20:32:36 +02:00
|
|
|
deprecationMessage: 'v2 is now available through docker/build-push-action@v2'
|
2020-03-05 16:52:30 +01:00
|
|
|
description: Docker repository to tag the image with
|
|
|
|
required: true
|
|
|
|
tags:
|
2020-03-05 17:28:11 +01:00
|
|
|
description: Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
|
2020-03-05 16:52:30 +01: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 16:01:36 +01:00
|
|
|
description: Automatically tags the built image with the git short SHA as per the readme
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
path:
|
2020-03-20 14:15:06 +01:00
|
|
|
description: Path to the build context
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
default: "."
|
|
|
|
dockerfile:
|
2020-03-20 14:15:06 +01:00
|
|
|
description: Path to the Dockerfile (Default is '{path}/Dockerfile')
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
target:
|
2020-03-06 10:15:16 +01:00
|
|
|
description: Sets the target stage to build
|
2020-03-05 16:52:30 +01: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 14:55:12 +01:00
|
|
|
description: Comma-delimited list of build-time variables
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
2020-04-22 17:34:18 +02:00
|
|
|
cache_froms:
|
|
|
|
description: Comma-delimited list of images to consider as cache sources
|
|
|
|
required: false
|
2020-03-05 16:52:30 +01:00
|
|
|
labels:
|
2020-03-05 17:28:11 +01:00
|
|
|
description: Comma-delimited list of labels to add to the built image
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
add_git_labels:
|
2020-03-06 14:51:14 +01:00
|
|
|
description: Adds labels with git repository information to the built image
|
2020-03-05 16:52:30 +01:00
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
push:
|
|
|
|
description: Whether to push the image
|
|
|
|
required: false
|
|
|
|
default: true
|