reanahub / reana

REANA: Reusable research data analysis platform
https://docs.reana.io
MIT License
123 stars 54 forks source link

ci: build and push docker images #752

Closed mdonadoni closed 10 months ago

mdonadoni commented 11 months ago

Currently, docker images are built and published somewhat manually, with the help of reana-dev. See the wiki page https://github.com/reanahub/reana/wiki/Releasing for more details.

We should start building a publishing Docker images automatically from GitHub actions, to make the release process quicker. Note that the we are actually already building the images as part of the CI, so this is just a matter of also configuring how to push them to DockerHub. Also, we should publish images only when a tag is pushed to the repository (i.e. a new version is released).

Possible blocking issue: to publish images to DockerHub we would need to use a personal token, as it is not possible to create tokens limited to a single organisation. This is not ideal from a security point-of-view, as that token could be used to also publish images under the "personal namespace" of the user who owns the token. A possible solution is to start using CERN's registry instead of (or in parallel to) DockerHub.