Skip to content

Publish Docker Image

Actions
Build and publish an Docker Image to Registry
1.0.2
Latest
Star (1)

Action: Docker Image

Build and publish an Docker Image to Registry.

Inputs

image_name

Required Name of Image

So that an image can be assigned by name, a unique name must be assigned.

image_tag

Default: latest

Each image should have a tag for unique identification.

build_args

Optional:

Docker build arguments in format KEY=VALUE,KEY=VALUE.

registry

Default registry.hub.docker.com Registry host.

URL of a Docker compatible registry for pushing a Docker image.

registry_username

Required Registry Username

registry_password

Required Registry Password

Registry Password. This should be stored in a Secret on Github.

See https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables.

dockerfile

Default: dockerfile

Storage location of the Docker file.

Example Usage

- name: Build and Publish Image
  uses: tinact/docker.image@master
  with:
    api_key: '3fe6ff42edm793ddei5'

Sponsor

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2020, Tinact

Publish Docker Image is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Build and publish an Docker Image to Registry
1.0.2
Latest

Publish Docker Image is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.