Build script fixes
All checks were successful
Create and publish container / build_container (push) Successful in 11s
All checks were successful
Create and publish container / build_container (push) Successful in 11s
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
echo "Build will be tagged with $1"
|
echo "Build will be tagged with $1"
|
||||||
echo "Build directory is $(pwd)"
|
echo "Build directory is $(pwd)"
|
||||||
|
|
||||||
@@ -12,6 +14,6 @@ docker push "$1"
|
|||||||
if [ -n "$OLD_IMG" ]; then
|
if [ -n "$OLD_IMG" ]; then
|
||||||
if [ "$OLD_IMG" != "$(docker image ls -q "$1")" ]; then
|
if [ "$OLD_IMG" != "$(docker image ls -q "$1")" ]; then
|
||||||
echo "New build uploaded, removing old image, id: $OLD_IMG"
|
echo "New build uploaded, removing old image, id: $OLD_IMG"
|
||||||
docker image rm "$OLD_IMG"
|
docker image rm "$OLD_IMG" || true
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user