adriel / denyhosts-sync-docker

Sync server for DenyHosts Docker image
https://hub.docker.com/r/adriel/denyhosts-sync/
MIT License
1 stars 1 forks source link

Add Docker Actions For Deployment #3

Open josev814 opened 4 years ago

josev814 commented 4 years ago

Can you deploy an action under the denyhosts/denyhosts-sync-docker repo to deploy the Docker Container automatically over to Docker? I took a quick glance at doing it but figured you might be better doing it than myself. Being that I'm not as well versed in Docker as you are.

adriel commented 4 years ago

hmmmm, I've never used actions before, don't think there was a docker one when I set it all up. I've always just used the "Automated Builds" within Docker hub, which automalily triggers a new build when a change is made in GitHub. I'll have a look at what Github actions adds when I've got a sec free.

josev814 commented 4 years ago

Looking at the actions that I committed, it seems that the action will run a test and build the image, and then commit the resulting image to Packages on GitHub. I was able to setup on Docker to do builds when github PR's are merged to master.

I'm thinking that with Actions, we can check if the denyhosts or denyhosts-sync repos have been updated. Then if they'ved been updated, that a new docker version is triggered to be built. Pretty sure I saw that a build trigger can be invoked on docker by accessing a generated URL.