From 0993dbd4c8bb00104f97c815d29d41ab2af990e2 Mon Sep 17 00:00:00 2001 From: Dinifarb Date: Fri, 16 Feb 2024 21:38:54 +0100 Subject: [PATCH] change: publish in workflow --- .github/workflows/dockerhub-build.yml | 26 +++++++++++++++++++++++++- publish.sh | 27 --------------------------- 2 files changed, 25 insertions(+), 28 deletions(-) delete mode 100644 publish.sh diff --git a/.github/workflows/dockerhub-build.yml b/.github/workflows/dockerhub-build.yml index cdacf18..df7b6f2 100644 --- a/.github/workflows/dockerhub-build.yml +++ b/.github/workflows/dockerhub-build.yml @@ -21,4 +21,28 @@ jobs: run: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - name: Build and push Docker images - run: publish.sh + run: | + + 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 + 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 + 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 + 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 diff --git a/publish.sh b/publish.sh deleted file mode 100644 index 78dad36..0000000 --- a/publish.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# creat array with activemy versions from 5.16.0 to 5.16.7 -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 - 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 - 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 - 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 -