mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-05-29 21:04:01 +00:00
refactor(ci): remove development build job from Docker workflow and update docker-tags script to include dev tagging
This commit is contained in:
@@ -22,15 +22,20 @@ case "$BRANCH" in
|
||||
master|main)
|
||||
echo "-t ${IMAGE}:latest" >> "$OUTPUT"
|
||||
;;
|
||||
dev)
|
||||
echo "-t ${IMAGE}:dev" >> "$OUTPUT"
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$REF" in
|
||||
refs/tags/v*)
|
||||
VERSION="${REF#refs/tags/v}"
|
||||
echo "-t ${IMAGE}:${VERSION}" >> "$OUTPUT"
|
||||
echo "-t ${IMAGE}:v${VERSION}" >> "$OUTPUT"
|
||||
MAJOR_MINOR="$(echo "$VERSION" | cut -d. -f1-2)"
|
||||
if [ "$MAJOR_MINOR" != "$VERSION" ]; then
|
||||
echo "-t ${IMAGE}:${MAJOR_MINOR}" >> "$OUTPUT"
|
||||
echo "-t ${IMAGE}:v${MAJOR_MINOR}" >> "$OUTPUT"
|
||||
fi
|
||||
;;
|
||||
refs/tags/*)
|
||||
|
||||
Reference in New Issue
Block a user