bugsink-server-unified: run in Docker

This commit is contained in:
Klaas van Schelven
2024-08-27 21:53:13 +02:00
parent ff42682c41
commit f6c43d4d6d
5 changed files with 69 additions and 4 deletions

View File

@@ -9,12 +9,12 @@ echo "Building docker image with wheel file: $WHEEL_FILE"
# if this a non-dev version, we tag the image with the full version number, major.minor, major, and latest
# otherwise no tags are added
TAGS=""
if [[ $WHEEL_FILE == *"dev"* ]]; then
echo "This is a dev version, no tags will be added"
TAGS="-t bugsink:dev"
else
VERSION=$(echo $WHEEL_FILE | cut -d'-' -f2)
TAGS="-t bugsink:$VERSION -t bugsink:$(echo $VERSION | awk -F. '{print $1"."$2}') -t bugsink:$(echo $VERSION | awk -F. '{print $1}') -t bugsink:latest"
TAGS="-t bugsink:$VERSION -t bugsink:$(echo $VERSION | awk -F. '{print $1"."$2}') -t bugsink:$(echo $VERSION | awk -F. '{print $1}') -t bugsink:latest -t bugsink"
echo "This is a non-dev version, tags will be added: $TAGS"
fi