coredns-dockerdiscovery icon indicating copy to clipboard operation
coredns-dockerdiscovery copied to clipboard

Added automated building of Docker image

Open mtak opened this issue 2 years ago • 1 comments

This PR adds automated builds of the Dockerfile in GitHub Actions and pushes the result towards Docker Hub.

All that's needed to enable this and make it work properly:

On Docker Hub

  • Create a Docker Hub account
  • Create an access token (Profile->Security->New Access Token)
  • Create a repository named coredns-dockerdiscovery on Docker Hub

On GitHub:

  • Set up the following variables in the repo settings:
    • DOCKERHUB_USERNAME - your Docker Hub username
    • DOCKERHUB_TOKEN - the access token

Example run can be seen at my fork

Note: normally I'd allow edits on my branch, but in this case it could give you access to my GitHub secrets. Feel free to clone and resubmit the PR if you feel it needs work and I'm not responding quickly enough to comments.

mtak avatar Jul 07 '22 18:07 mtak

why not use the github container registry?

https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

u6bkep avatar Nov 10 '23 18:11 u6bkep