moneroexamples / onion-monero-blockchain-explorer

Onion Monero Blockchain Explorer
https://xmrchain.net
BSD 3-Clause "New" or "Revised" License
362 stars 269 forks source link

Enable Github actions build of Docker image #252

Closed sethforprivacy closed 1 year ago

sethforprivacy commented 2 years ago

Hi there,

This PR is very much a "use if you want, no offense if you don't" PR, but enables Docker image builds automatically:

The Docker image is built and pushed to Github Packages and Docker Hub with the latest tag and the MONERO_BRANCH arg as a tag as well.

Note that for this to push to Docker Hub, you will need to create two repository secrets:

If you don't want to push to Docker Hub, I can update and remove all relevant Docker Hub configuration.

And if you don't want to build and push images at all, feel free to simply decline the PR :) The main advantage of this is users can utilize the project without needing to bother with manual builds, git pull's, etc., and I will be using it to start bundling the explorer with monerod in a few of my projects/guides.

You can see working runs of this set of actions here:

https://github.com/sethforprivacy/onion-monero-blockchain-explorer/actions

And Docker images built using it are available here:

https://hub.docker.com/repository/docker/sethsimmons/xmrblocks

moneroexamples commented 2 years ago

Thanks. I will have a look at dockerhub.

moneroexamples commented 1 year ago

@sethforprivacy

Sorry it took so long, but finally made an account on dockerhub and created the two secrets. I re-based your PR to dockerhub branch on the explorer and will merge it there for test. Not sure if changing the branch will affect the actions.