When a build is triggered by a github release, it will take the github tag as the version number for the docker tag.
Since scirius is always tag with the pattern scirius-x.y.z, it would lead to an image named scirius:scirius-x.y.z, which is weird.
With this change, the scirius- prefix, if it exists, will be stripped, so that the docker tag becomes only x.y.z and the docker image will be referenced as scirius:x.y.z
When a build is triggered by a github release, it will take the github tag as the version number for the docker tag. Since scirius is always tag with the pattern
scirius-x.y.z
, it would lead to an image namedscirius:scirius-x.y.z
, which is weird.With this change, the
scirius-
prefix, if it exists, will be stripped, so that the docker tag becomes onlyx.y.z
and the docker image will be referenced asscirius:x.y.z