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