Skip to content

Instantly share code, notes, and snippets.

@stfsy
Last active June 20, 2020 10:27
Show Gist options
  • Save stfsy/8a654d8364170ae59cd9b3c8d434a2ba to your computer and use it in GitHub Desktop.
Save stfsy/8a654d8364170ae59cd9b3c8d434a2ba to your computer and use it in GitHub Desktop.
#!/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