ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
173 stars 110 forks source link

Add a workflow to publish a Docker image when a version is released #1093

Closed betanzos closed 2 years ago

betanzos commented 3 years ago

This PR automates the release process. Now, when a GitHub release is published a GitHub Actions workflow will build the Docker image for this new version and publish it (docker push) in DockerHub.

In order to do this we need to add 3 secrets to this repository:

Every image will be tagged with: latest, git-tag and commit-short-sha. Now the image version will be handled with tags instead of the image name (because this is a bad practice). Below some examples: