Thanks to visit codestin.com
Credit goes to github.com

Skip to content

niltong09/docker-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish docker action

This action publish docker image to your registry

Inputs

username

Required Registry username to authentication.

password

Required Registry password to authentication.

repository

Required Repository on registry.

registry

If you didn't use dockerhub, pass registry hostname.

tag

Image tag. If you don't want to set, it sets default snapshot tag(current time).

Outputs

image

Tagged image name

Example usage

If you use dockerhub[https://hub.docker.com],

uses: zenato/docker-action@master
with:
    username: ${{ secrets.DOCKER_USERNAME }}
    password: ${{ secrets.DOCKER_PASSWORD }}
    repository: user/test-repo
    tag: 1.0

Other registry,

uses: zenato/docker-action@master
with:
    username: ${{ secrets.DOCKER_USERNAME }}
    password: ${{ secrets.DOCKER_PASSWORD }}
    repository: user/test-repo/test-app
    registry: docker.pkg.github.com
    tag: 1.0

About

GitHub Actions for build and publish Docker Image

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 61.1%
  • Dockerfile 38.9%