Build and publish your repository as a Docker image and push it to GitHub Package Registry in one easy step.
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 }}.
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.
Optional. GitHub user to publish the image on behalf of. Defaults to the user who triggered the action to run.
Optional. The repository to push the image to. Defaults to current repository. Must be specified in format user/repo.
Optional. The desired name for the image. Defaults to current repository name.
Optional. The desired tag for the image. Defaults to current branch or release version number.
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.
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.
Optional. Any additional build arguments to use when building the image.
The full URL of the image.
- name: Checkout Repository
uses: actions/checkout@v2
- name: Publish Image
uses: matootie/github-docker@v2.2.1
with:
accessToken: ${{ secrets.GITHUB_TOKEN }}