-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-image.sh
30 lines (24 loc) · 860 Bytes
/
build-image.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
set -o errexit
if [ "$#" -ne 1 ]; then
echo Missing version parameter
echo Usage: build-image.sh \<version\>
exit 1
fi
VERSION=$1
SCRIPTDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pushd "$SCRIPTDIR/seata-business-service"
./mvnw clean package -DskipTests=true
docker build --pull -t "registry.sloth.com/ipaas/business-service:${VERSION}" .
popd
pushd "$SCRIPTDIR/seata-order-service"
./mvnw clean package -DskipTests=true
docker build --pull -t "registry.sloth.com/ipaas/order-service:${VERSION}" .
popd
pushd "$SCRIPTDIR/seata-storage-service"
./mvnw clean package -DskipTests=true
docker build --pull -t "registry.sloth.com/ipaas/storage-service:${VERSION}" .
popd
pushd "$SCRIPTDIR/seata-user-service"
./mvnw clean package -DskipTests=true
docker build --pull -t "registry.sloth.com/ipaas/user-service:${VERSION}" .
popd