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
The following commit(s) were added to
refs/heads/FINERACT-2326/publish-releases-to-docker by this push:
new 811f43b01d FINERACT-2326: Publish all tags to DockerHub
811f43b01d is described below
commit 811f43b01d8f66e9fa4d94f3f477512d2fdafca7
Author: Adam Saghy <[email protected]>
AuthorDate: Wed Sep 17 13:07:31 2025 +0200
FINERACT-2326: Publish all tags to DockerHub
---
.../workflows/publish-all-tags-to-docker-hub.yml | 43 ++++++++++++++++++++++
1 file changed, 43 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..7962d98f4a
--- /dev/null
+++ b/.github/workflows/publish-all-tags-to-docker-hub.yml
@@ -0,0 +1,43 @@
+name: Publish All Tags to DockerHub
+
+on:
+ workflow_dispatch: # run manually
+
+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