Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
IMAGE_NAME: fineract
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5
Expand All @@ -39,6 +41,14 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0

- name: Login to Docker Hardened Images registry
if: ${{ env.DOCKERHUB_USER != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@v3
with:
registry: dhi.io
username: ${{ env.DOCKERHUB_USER }}
password: ${{ env.DOCKERHUB_TOKEN }}

- name: Build the image
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -Djib.to.image=$IMAGE_NAME -x test -x cucumber

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/build-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
EVENT_VERIFICATION_ENABLED: true
ACTIVEMQ_BROKER_URL: tcp://localhost:61616
ACTIVEMQ_TOPIC_NAME: events
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

steps:
- name: Checkout code
Expand All @@ -56,6 +58,13 @@ jobs:
echo "Shard ${{ matrix.shard_index }} feature files:"
cat feature_shard_${{ matrix.shard_index }}.txt

- name: Login to Docker Hardened Images registry
if: ${{ env.DOCKERHUB_USER != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@v3
with:
registry: dhi.io
username: ${{ env.DOCKERHUB_USER }}
password: ${{ env.DOCKERHUB_TOKEN }}
- name: Build the image
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -Djib.to.image=$IMAGE_NAME -x test -x cucumber

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/publish-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- develop
- develop-hardened
tags:
- 1.*
permissions:
Expand All @@ -13,6 +14,8 @@ jobs:
timeout-minutes: 60
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
steps:
- name: Checkout Source Code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5
Expand All @@ -28,6 +31,14 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0

- name: Login to Docker Hardened Images registry
if: ${{ env.DOCKERHUB_USER != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@v3
with:
registry: dhi.io
username: ${{ env.DOCKERHUB_USER }}
password: ${{ env.DOCKERHUB_TOKEN }}

- name: Get Git Hashes
run: |
echo "short_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/smoke-messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
IMAGE_NAME: fineract
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5
Expand All @@ -37,6 +39,14 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0

- name: Login to Docker Hardened Images registry
if: ${{ env.DOCKERHUB_USER != '' && env.DOCKERHUB_TOKEN != '' }}
uses: docker/login-action@v3
with:
registry: dhi.io
username: ${{ env.DOCKERHUB_USER }}
password: ${{ env.DOCKERHUB_TOKEN }}

- name: Build the image
run: ./gradlew --no-daemon --console=plain :fineract-provider:jibDockerBuild -Djib.to.image=$IMAGE_NAME -x test -x cucumber

Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ buildscript {
classpath 'org.apache.commons:commons-lang3:3.18.0'
classpath 'io.swagger.core.v3:swagger-jaxrs2-jakarta:2.2.22'
classpath 'jakarta.servlet:jakarta.servlet-api:6.1.0'
classpath "com.github.luben:zstd-jni:1.5.7-6"
}
}

Expand All @@ -108,7 +109,7 @@ plugins {
id 'com.gorylenko.gradle-git-properties' version '2.4.2' apply false
id 'org.asciidoctor.jvm.convert' version '4.0.5' apply false
id 'org.asciidoctor.jvm.pdf' version '4.0.5' apply false
id 'com.google.cloud.tools.jib' version '3.4.5' apply false
id 'com.google.cloud.tools.jib' version '3.5.2' apply false
id 'org.sonarqube' version '6.0.1.5171'
id 'com.github.andygoossens.modernizer' version '1.10.0' apply false
id 'com.github.spotbugs' version '6.0.26' apply false
Expand Down
8 changes: 7 additions & 1 deletion custom/docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ apply from: "${rootDir}/buildSrc/src/main/groovy/org.apache.fineract.dependencie

jib {
from {
image = 'azul/zulu-openjdk-alpine:21'
def hasDockerCreds =
System.getenv("DOCKERHUB_USER")?.trim() &&
System.getenv("DOCKERHUB_TOKEN")?.trim()

image = hasDockerCreds
? "dhi.io/azul:21-jdk-prime"
: "azul/zulu-openjdk-alpine:21"
platforms {
platform {
architecture = System.getProperty("os.arch").equals("aarch64")?"arm64":"amd64"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,7 @@ public PostLoanProductsRequest defaultLoanProductsRequestLP2EmiUSD() {
.inArrearsTolerance(true)//
.repaymentEvery(true)//
.graceOnPrincipalAndInterestPayment(true)//
.graceOnArrearsAgeing(true))//
.graceOnArrearsAging(true))//
.isEqualAmortization(false)//
.delinquencyBucketId(DELINQUENCY_BUCKET_ID.longValue())//
.enableDownPayment(false)//
Expand Down
8 changes: 7 additions & 1 deletion fineract-provider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,13 @@ bootJar {

jib {
from {
image = 'azul/zulu-openjdk-alpine:21'
def hasDockerCreds =
System.getenv("DOCKERHUB_USER")?.trim() &&
System.getenv("DOCKERHUB_TOKEN")?.trim()

image = hasDockerCreds
? "dhi.io/azul:21-jdk-prime"
: "azul/zulu-openjdk-alpine:21"
platforms {
platform {
architecture = System.getProperty("os.arch").equals("aarch64")?"arm64":"amd64"
Expand Down
Loading