This commit is contained in:
1 parent
c8d7251c08
commit
3608fe6687
2 files changed
+3
-3
No files matched your search
@@ -9,8 +9,8 @@ docker buildx build . -t "$1"
|
||||
echo "Build complete, starting upload..."
|
||||
docker push "$1"
|
||||
|
||||
if [[ -n "$OLD_IMG" ]]; then
|
||||
if [[ "$OLD_IMG" != "$(docker image ls -q "$1")" ]]; then
|
||||
if [ -n "$OLD_IMG" ]; then
|
||||
if [ "$OLD_IMG" != "$(docker image ls -q "$1")" ]; then
|
||||
echo "New build uploaded, removing old image, id: $OLD_IMG"
|
||||
docker image rm "$OLD_IMG"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user