add publish custom image script
This commit is contained in:
parent
3533899a57
commit
8107a100d4
8
publish-custom-image.sh
Normal file
8
publish-custom-image.sh
Normal file
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user