Skip to content

Commit

Permalink
docker-build.sh: fix push
Browse files Browse the repository at this point in the history
  • Loading branch information
romw314 committed Jun 24, 2024
1 parent 13f383e commit 5c75a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ for variant in debian alpine; do

tagname="$version-${variantver["$variant"]}"

images+=("$imgname:$tagname")

if [ ! "$all" = "true" ] && docker image ls "$imgname" --format '{{.Tag}}' | awk -v tag="$tagname" '$0==tag{print "skip"}' | grep -q skip; then
echo "Skipped $imgname:$tagname."
continue
Expand All @@ -117,8 +119,6 @@ for variant in debian alpine; do
--build-arg BASE="${base["$variant"]}" \
.

images+=("$imgname:$tagname")

case "$variant" in
debian) docker_tag "$imgname:$tagname" "$imgname:$version";;
alpine) docker_tag "$imgname:$tagname" "$imgname:$version-alpine";;
Expand Down

0 comments on commit 5c75a8d

Please sign in to comment.