From 0984c7a595bfa2c1cf5a5c59f49759bc6a9a6e3a Mon Sep 17 00:00:00 2001 From: DiniFarb Date: Sat, 17 Feb 2024 10:00:27 +0100 Subject: [PATCH] Update dockerhub-build.yml --- .github/workflows/dockerhub-build.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/dockerhub-build.yml b/.github/workflows/dockerhub-build.yml index e56edff..25f9321 100644 --- a/.github/workflows/dockerhub-build.yml +++ b/.github/workflows/dockerhub-build.yml @@ -27,30 +27,21 @@ jobs: activemq_java8_versions=(5.16.0 5.16.1 5.16.2 5.16.3 5.16.4 5.16.5 5.16.6 5.16.7) for version in "${activemq_java8_versions[@]}" ; do - docker manifest inspect dinifarb/activemq:$version > /dev/null - if [ $? -ne 0 ]; then - echo "Publishing version $version" - docker build -t dinifarb/activemq:$version --build-arg ACTIVEMQ_VERSION=$version . - docker push dinifarb/activemq:$version - fi + echo "Publishing version $version" + docker build -t dinifarb/activemq:$version --build-arg ACTIVEMQ_VERSION=$version . + docker push dinifarb/activemq:$version done activemq_java11_versions=(5.17.0 5.17.1 5.17.2 5.17.3 5.17.4 5.17.5 5.17.6 5.18.0 5.18.1 5.18.2 5.18.3) for version in "${activemq_java11_versions[@]}" ; do - docker manifest inspect dinifarb/activemq:$version > /dev/null - if [ $? -ne 0 ]; then - echo "Publishing version $version" - docker build -t dinifarb/activemq:$version --build-arg ACTIVEMQ_VERSION=$version --build-arg JAVA_VERSION=11 . - docker push dinifarb/activemq:$version - fi + echo "Publishing version $version" + docker build -t dinifarb/activemq:$version --build-arg ACTIVEMQ_VERSION=$version --build-arg JAVA_VERSION=11 . + docker push dinifarb/activemq:$version done activemq_java17_versions=(6.0.0 6.0.1) for version in "${activemq_java17_versions[@]}" ; do - docker manifest inspect dinifarb/activemq:$version > /dev/null - if [ $? -ne 0 ]; then - echo "Publishing version $version" - docker build -t dinifarb/activemq:$version --build-arg ACTIVEMQ_VERSION=$version --build-arg JAVA_VERSION=17 . - docker push dinifarb/activemq:$version - fi + echo "Publishing version $version" + docker build -t dinifarb/activemq:$version --build-arg ACTIVEMQ_VERSION=$version --build-arg JAVA_VERSION=17 . + docker push dinifarb/activemq:$version done