File tree Expand file tree Collapse file tree 2 files changed +12
-43
lines changed Expand file tree Collapse file tree 2 files changed +12
-43
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ echo $NGINX_VERSION:$NGINX_SHASUM
1818echo " docker build --build-arg NGINX_VERSION=$NGINX_VERSION --build-arg NGINX_SHASUM=$NGINX_SHASUM --tag $DIST -f " $RELEASE_DIR /Dockerfile.alpine" ."
1919docker 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
2330TAG=base-$NGINX_VERSION ;
@@ -28,3 +35,8 @@ echo "Build: $DIST";
2835echo $NGINX_VERSION :$NGINX_SHASUM
2936echo " docker build --build-arg NGINX_VERSION=$NGINX_VERSION --build-arg NGINX_SHASUM=$NGINX_SHASUM --tag $DIST -f " $RELEASE_DIR /Dockerfile.debian" ."
3037docker 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
You can’t perform that action at this time.
0 commit comments