You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ad...@apache.org on 2025/09/17 11:09:49 UTC

(fineract) branch FINERACT-2326/publish-releases-to-docker updated (811f43b01d -> abf615bcfd)

This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a change to branch FINERACT-2326/publish-releases-to-docker
in repository https://gitbox.apache.org/repos/asf/fineract.git


 discard 811f43b01d FINERACT-2326: Publish all tags to DockerHub
     new abf615bcfd FINERACT-2326: Publish all tags to DockerHub

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (811f43b01d)
            \
             N -- N -- N   refs/heads/FINERACT-2326/publish-releases-to-docker (abf615bcfd)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/publish-all-tags-to-docker-hub.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


(fineract) 01/01: FINERACT-2326: Publish all tags to DockerHub

Posted by ad...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a commit to branch FINERACT-2326/publish-releases-to-docker
in repository https://gitbox.apache.org/repos/asf/fineract.git

commit abf615bcfd11a86b2b8ffa6183299a86df5a40ca
Author: Adam Saghy <ad...@gmail.com>
AuthorDate: Wed Sep 17 13:07:31 2025 +0200

    FINERACT-2326: Publish all tags to DockerHub
---
 .../workflows/publish-all-tags-to-docker-hub.yml   | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/.github/workflows/publish-all-tags-to-docker-hub.yml b/.github/workflows/publish-all-tags-to-docker-hub.yml
new file mode 100644
index 0000000000..66c117e9ed
--- /dev/null
+++ b/.github/workflows/publish-all-tags-to-docker-hub.yml
@@ -0,0 +1,42 @@
+name: Publish All Tags to DockerHub
+
+on: [push, pull_request]
+
+jobs:
+  publish:
+    runs-on: ubuntu-24.04
+    steps:
+      - name: Checkout Source Code
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0  # fetch full history including tags
+
+      - name: Set up JDK 21
+        uses: actions/setup-java@v4
+        with:
+          java-version: '21'
+          distribution: 'zulu'
+
+      - name: Setup Gradle
+        uses: gradle/actions/setup-gradle@v4
+
+      - name: Build & Push all Git tags with Jib
+        env:
+          DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
+          DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
+        run: |
+          git fetch --tags --force
+          TAGS=$(git tag --list)
+
+          for TAG in $TAGS; do
+            echo "🏷️ Building and publishing Docker image for tag: $TAG"
+
+            git checkout $TAG
+
+            ./gradlew --no-daemon --console=plain :fineract-provider:jib -x test -x cucumber \
+              -Djib.to.auth.username=$DOCKERHUB_USER \
+              -Djib.to.auth.password=$DOCKERHUB_TOKEN \
+              -Djib.from.platforms=linux/amd64,linux/arm64 \
+              -Djib.to.image=$DOCKERHUB_USER/fineract \
+              -Djib.to.tags=$TAG
+          done