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. 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/[email protected]
with:
accessToken: ${{ secrets.GITHUB_TOKEN }}