Skip to content
upload-cloud

GitHub Action

Docker Build Push

v0.0.27 Latest version

Docker Build Push

upload-cloud

Docker Build Push

Build and push Docker image

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Docker Build Push

uses: rossmaclean/docker-build-push-action@v0.0.27

Learn more about this action in rossmaclean/docker-build-push-action

Choose a version

Docker Build Push Action

This actions builds a Docker image and pushes it to Dockerhub.

Arguments

Docker User

  • Key: docker-user
  • Required: true

The user which will be used when building/pushing the image.

Image Name

  • Key: image-name
  • Required: true

The image name which will be used when building/pushing the image

Dockerhub Token

  • Key: dockerhub-token
  • Required: true

The token used to push the image.

Docker Registry URL

  • Key: docker-registry-url
  • Required: false
  • Default: docker.io

URL for the Docker registry

Version

  • Key: version
  • Required: true

The version used when building/pushing the image.

NOTE: The tag latest is also added to all images.