sncli
sncli copied to clipboard
Add 'Publish Docker image' Github Action and enable Dependabot for it.
Finally, I gave a stab at #107 using Github Actions. :tada:
Github Action requires DOCKERHUB_USERNAME and DOCKERHUB_TOKEN (generated on DH's security settings page) to be set in the Github secrets section in the repo config.
Git pushes will trigger this Github Action to build Docker images and push them to Docker Hub:
- Git branch
branchnamepushessncli:branchnameimage tag. Thus,sncli:masteracts as an edge/unreleased/HEAD image tag. Other branches push to their respective image tags (useful for testing feature branches), - Git tags
X.Y.ZorvX.Y.Xpush tosncli:X.Y.Z,sncli:X.Y,sncli:Xandsncli:latest.:latesttag is the default when pulling if no tag specified, sodocker pull insanum/snclipulls latestHEADcode (assuminginsanumis your Docker Hub user).
Also enabled Dependabot (only for Github Actions manifests). No need to toggle or configure anything.
Also, I've noticed no tag has been pushed since a while ago. Fancy to create a release to test it out? :wink: Not required, thou, as merging will trigger it anyway. Just make sure to set secrets beforehand.
Thanks @pataquets ! I'll defer this to @insanum though, since it requires changes to the repository's config. :)
@swalladge @insanum ping
@insanum anything else needed here?
Thank you for your effort. While I don't hack on this repo anymore and no longer use sncli... I don't want a change like this to affect this repo in the future. Isn't Docker Automations/Actions a paid service? Could you just run this off of your own fork of sncli?