Last active
June 20, 2020 10:27
-
-
Save stfsy/8a654d8364170ae59cd9b3c8d434a2ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
build() { | |
declare -r version=$1 | |
mvn -DskipTests clean package -q -Dspring.boot.version=${version}.RELEASE | |
docker build -t localhost:5000/proxy:${version} . | |
docker push localhost:5000/proxy:${version} | |
} | |
# build spring boot 2.0 | |
for index in {0..9..1} | |
do | |
build 2.0.${index} | |
done | |
# build spring boot 2.1 | |
for index in {0..15..1} | |
do | |
build 2.1.${index} | |
done | |
# build spring boot 2.2 | |
for index in {0..8..1} | |
do | |
build 2.2.${index} | |
done | |
# build spring boot 2.3 | |
for index in {0..1..1} | |
do | |
build 2.3.${index} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment