Add major.minor tagging to docker images (#229)

This commit is contained in:
MisguidedEmails 2019-10-16 15:50:01 +01:00 committed by Jannis Mattheis
parent 4938a4a0ac
commit d6055f3363
1 changed files with 10 additions and 2 deletions

View File

@ -73,12 +73,20 @@ package-zip: extract-licenses
build-docker-amd64: require-version
cp ${BUILD_DIR}/gotify-linux-amd64 ./docker/gotify-app
(cd ${DOCKER_DIR} && docker build -t gotify/server:latest -t gotify/server:${VERSION} .)
cd ${DOCKER_DIR} && \
docker build \
-t gotify/server:latest \
-t gotify/server:${VERSION} \
-t gotify/server:$(shell echo $(VERSION) | cut -d '.' -f -2) .
rm ${DOCKER_DIR}gotify-app
build-docker-arm-7: require-version
cp ${BUILD_DIR}/gotify-linux-arm-7 ./docker/gotify-app
(cd ${DOCKER_DIR} && docker build -f Dockerfile.armv7 -t gotify/server-arm7:latest -t gotify/server-arm7:${VERSION} .)
cd ${DOCKER_DIR} && \
docker build -f Dockerfile.armv7 \
-t gotify/server-arm7:latest \
-t gotify/server-arm7:${VERSION} \
-t gotify/server-arm7:$(shell echo $(VERSION) | cut -d '.' -f -2) .
rm ${DOCKER_DIR}gotify-app
build-docker: build-docker-amd64 build-docker-arm-7