insanum / sncli

Simplenote CLI
MIT License
396 stars 34 forks source link

Create an official, Automated Build image on Docker Hub #107

Open pataquets opened 3 years ago

pataquets commented 3 years ago

Docker Hub allows you to ~create free Automated Builds from source: https://docs.docker.com/docker-hub/builds/~ host public Docker images for free. It would add another packaging/distribution/installation method, whose buildings would be triggered automatically on each commit. It also allows to create different image tags from git tags & branches. Also, documentation could easily include a canonical docker run statement referencing the public image to quickly spin up a sncli instance with just a single command, without having to build it yourself.

By making the image build via ~an AB~ a Github Action, you give the resulting image verifiability and auditability. Also, the build is fully automatic. You can have the latest image tag build from HEAD and individual image tags from git's release tags. Some people avoid non-verifiable (manually uploaded) images due to security & traceability reasons. Docker search command clearly displays AB when listing images.

Since there is already a Dockerfile in the repo, just a free Docker Hub account and ~a quick 5 minute setup~ a simple Github Action would do.

EDIT: Docker Hub's Automated Builds are no longer free, they require a paid subscription. However the same may be accomplished via Github Actions.