globaleaks / whistleblowing-software

GlobaLeaks is free, open-source whistleblowing software enabling anyone to easily set up and maintain a secure reporting platform.
https://www.globaleaks.org
Other
1.22k stars 267 forks source link

Automating the Publishing of docker image #4065

Open kskarthik opened 4 months ago

kskarthik commented 4 months ago

Proposal

I have a thought regarding automating updating of docker image to the project's docker registry.

The workflow is described in-depth below:

Tasks to be done by the developer locally:

  1. creates a tag
  2. build the deb locally & sign
  3. push to the project's debian archive
  4. push the tag to github

The Proposed Automation part:

  1. A workflow will be tiggered on github actions when a tag is pushed
  2. A script checks if a new version which matches the git tag, is published at deb.globaleaks.org
  3. If yes, It builds docker image from the Dockerfile present in the project's repo & tags it with the latest version. Else, the job fails.
  4. Pushes to the docker hub

Motivation and context

This will reduce the number of repetitive manual tasks to be done for each release & helps the developers prioritize their attention

kskarthik commented 4 months ago

i have a proof-of-concept implementation in bash for this method.