Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.
/ github-docker Public archive
generated from actions/javascript-action

⚓ Build and publish your repository as a Docker image and push it to GitHub Package Registry in one step.

License

Notifications You must be signed in to change notification settings

matootie/github-docker

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Docker Action

Build and publish your repository as a Docker image and push it to GitHub Package Registry in one easy step.

Inputs

accessToken

Required. GitHub Token for the user. Must have write permissions for packages. Recommended set up would be to use the provided GitHub Token for your repository; ${{ secrets.GITHUB_TOKEN }}.

context

Optional. Where should GitHub Docker find the Dockerfile? This is a path relative to the repository root. Defaults to ., meaning it will look for a Dockerfile in the root of the repository.

username

Optional. GitHub user to publish the image on behalf of. Defaults to the user who triggered the action to run.

repositoryName

Optional. The repository to push the image to. Defaults to current repository. Must be specified in format user/repo.

imageName

Optional. The desired name for the image. Defaults to current repository name.

imageTag

Optional. The desired tag for the image. Defaults to current branch or release version number.

imageTagPrefix

Optional. Added to the beginning of the tag. Useful if you want to let GitHub Docker decide the tag, but prepend something of your own to it.

imageTagSuffix

Optional. Added to the end of the tag. Useful if you want to let GitHub Docker decide the tag, but append something of your own to it.

buildArguments

Optional. Any additional build arguments to use when building the image.

Outputs

imageURL

The full URL of the image.

Example usage

- name: Checkout Repository
  uses: actions/checkout@v2
- name: Publish Image
  uses: matootie/github-docker@v2.2.1
  with:
    accessToken: ${{ secrets.GITHUB_TOKEN }}

About

⚓ Build and publish your repository as a Docker image and push it to GitHub Package Registry in one step.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors