Skip to content

Commit 00c7551

Browse files
committed
change docker tag name
1 parent e600d9e commit 00c7551

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

make-image.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/bash
22

3-
REPO_NAME="soulteary/prebuilt-nginx-modules"
4-
tag="echo";
5-
63
set -a
74
. "docker/.env"
85
set +a
96

7+
REPO_NAME="soulteary/prebuilt-nginx-modules"
8+
9+
REPO_TAG="ngx-$NGINX_VERSION-echo-$MODULE_VERSION";
10+
1011

1112
if [ -f "docker/Dockerfile.alpine" ]; then
12-
BUILD_NAME="$REPO_NAME:$tag-$NGINX_VERSION-alpine"
13+
BUILD_NAME="$REPO_NAME:$REPO_TAG-alpine"
1314
if [[ "$(docker images -q $BUILD_NAME 2> /dev/null)" == "" ]]; then
1415
echo "Build: $BUILD_NAME";
1516
BUILD_ARGS=$(tr '\n' ';' < "docker/.env" | sed 's/;$/\n/' | sed 's/^/ --build-arg /' | sed 's/;/ --build-arg /g')
@@ -18,7 +19,7 @@ if [ -f "docker/Dockerfile.alpine" ]; then
1819
fi
1920

2021
if [ -f "docker/Dockerfile.debian" ]; then
21-
BUILD_NAME="$REPO_NAME:$tag-$NGINX_VERSION"
22+
BUILD_NAME="$REPO_NAME:$REPO_TAG"
2223
if [[ "$(docker images -q $BUILD_NAME 2> /dev/null)" == "" ]]; then
2324
echo "Build: $BUILD_NAME";
2425
BUILD_ARGS=$(tr '\n' ';' < "docker/.env" | sed 's/;$/\n/' | sed 's/^/ --build-arg /' | sed 's/;/ --build-arg /g')

0 commit comments

Comments
 (0)