mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
63 lines
2.1 KiB
YAML
63 lines
2.1 KiB
YAML
name: 'Publish Docker'
|
|
author: 'Lars Gohr'
|
|
branding:
|
|
icon: 'anchor'
|
|
color: 'blue'
|
|
description: 'Uses the git branch as the docker tag and pushes the container'
|
|
inputs:
|
|
name:
|
|
description: 'The name of the image you would like to push'
|
|
required: true
|
|
username:
|
|
description: 'The login username for the registry'
|
|
required: true
|
|
password:
|
|
description: 'The login password for the registry'
|
|
required: true
|
|
registry:
|
|
description: 'Use registry for pushing to a custom registry'
|
|
required: false
|
|
snapshot:
|
|
description: 'Use snapshot to push an additional image'
|
|
required: false
|
|
dockerfile:
|
|
description: 'Use dockerfile when you would like to explicitly build a Dockerfile'
|
|
required: false
|
|
workdir:
|
|
description: 'Use workdir when you would like to change the directory for building'
|
|
required: false
|
|
context:
|
|
description: 'Use context when you would like to change the Docker build context.'
|
|
required: false
|
|
buildargs:
|
|
description: 'Use buildargs when you want to pass a list of environment variables as build-args'
|
|
required: false
|
|
buildoptions:
|
|
description: 'Use buildoptions when you want to configure options for building'
|
|
required: false
|
|
cache:
|
|
description: 'Use cache when you have big images, that you would only like to build partially'
|
|
required: false
|
|
tags:
|
|
description: 'Use tags when you want to bring your own tags (separated by comma)'
|
|
required: false
|
|
tag_names:
|
|
description: 'Use tag_names when you want to push tags/release by their git name'
|
|
required: false
|
|
tag_semver:
|
|
description: 'Push semver docker tags. e.g. image:1.2.3, image:1.2, image:1'
|
|
required: false
|
|
no_push:
|
|
description: 'Set no_push to true if you want to prevent the action from pushing to a registry (default: false)'
|
|
required: false
|
|
outputs:
|
|
tag:
|
|
description: 'Is the tag, which was pushed'
|
|
snapshot-tag:
|
|
description: 'Is the tag that is generated by the snapshot-option and pushed'
|
|
digest:
|
|
description: 'Is the digest of the image, which was pushed'
|
|
runs:
|
|
using: 'docker'
|
|
image: 'Dockerfile'
|