Skip to content

Commit a4de5b4

Browse files
committed
add nacos-server/build.sh
1 parent eb012fb commit a4de5b4

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

mse-simple-demo/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ cd "$(dirname "$0")"
1313
./ZuulGateway/build.sh
1414
./SpringCloudGateway/build.sh
1515
./mysql/build.sh
16+
./nacos-server/build.sh
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
export REGISTRY=${REGISTRY}
3+
4+
export appName=nacos-server
5+
export VERSION="v2.1.2"
6+
7+
set -e
8+
9+
cd "$(dirname "$0")"
10+
11+
docker pull nacos/nacos-server:${VERSION}
12+
docker tag nacos/nacos-server:${VERSION} ${REGISTRY}${appName}:${VERSION}
13+
14+
if [ -n "${REGISTRY}" ]; then
15+
docker push ${REGISTRY}${appName}:${VERSION}
16+
fi
17+

0 commit comments

Comments
 (0)