Skip to content

Commit 107ae9e

Browse files
committed
upd script
1 parent f6a22bc commit 107ae9e

File tree

2 files changed

+12
-43
lines changed

2 files changed

+12
-43
lines changed

push-image.sh

-43
This file was deleted.

make-base.sh renamed to update.sh

+12
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ echo $NGINX_VERSION:$NGINX_SHASUM
1818
echo "docker build --build-arg NGINX_VERSION=$NGINX_VERSION --build-arg NGINX_SHASUM=$NGINX_SHASUM --tag $DIST -f "$RELEASE_DIR/Dockerfile.alpine" ."
1919
docker build --build-arg NGINX_VERSION="$NGINX_VERSION" --build-arg NGINX_SHASUM="$NGINX_SHASUM" --tag $DIST -f "$RELEASE_DIR/Dockerfile.alpine" .
2020

21+
if [[ "$(docker images -q $DIST 2> /dev/null)" != "" ]]; then
22+
echo "Push: $DIST";
23+
docker push $DIST;
24+
fi
25+
26+
27+
2128
# Build For Debian
2229

2330
TAG=base-$NGINX_VERSION;
@@ -28,3 +35,8 @@ echo "Build: $DIST";
2835
echo $NGINX_VERSION:$NGINX_SHASUM
2936
echo "docker build --build-arg NGINX_VERSION=$NGINX_VERSION --build-arg NGINX_SHASUM=$NGINX_SHASUM --tag $DIST -f "$RELEASE_DIR/Dockerfile.debian" ."
3037
docker build --build-arg NGINX_VERSION="$NGINX_VERSION" --build-arg NGINX_SHASUM="$NGINX_SHASUM" --tag $DIST -f "$RELEASE_DIR/Dockerfile.debian" .
38+
39+
if [[ "$(docker images -q $DIST 2> /dev/null)" != "" ]]; then
40+
echo "Push: $DIST";
41+
docker push $DIST;
42+
fi

0 commit comments

Comments
 (0)