From 8107a100d4a93a9537500cd77de12ddcf8c8a140 Mon Sep 17 00:00:00 2001 From: Kilian Schuettler Date: Thu, 10 Aug 2023 15:49:45 +0200 Subject: [PATCH] add publish custom image script --- publish-custom-image.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 publish-custom-image.sh diff --git a/publish-custom-image.sh b/publish-custom-image.sh new file mode 100644 index 00000000..2610fc3c --- /dev/null +++ b/publish-custom-image.sh @@ -0,0 +1,8 @@ +#!/bin/bash +dir=${PWD##*/} +gradle assemble + +buildNumber=${1:-1} + +gradle bootBuildImage --cleanCache --publishImage -PbuildbootDockerHostNetwork=true -Pversion=$USER-$buildNumber +echo "nexus.knecon.com:5001/red/${dir}-server-v1:$USER-$buildNumber"