Skip to content

Update Mifos Github Actions workflows #30

Update Mifos Github Actions workflows

Update Mifos Github Actions workflows #30

name: Publish Fineract to Mifos Docker Hub
on:
push:
branches:
- develop-mifos
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
steps:
- name: Checkout Source Code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5
with:
java-version: '21'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
- name: Build with Gradle
env:
JIB_USERNAME: ${{secrets.DOCKER_USERNAME}}
JIB_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: ./gradlew :fineract-provider:clean -Djib.to.image=openmf/fineract:latest -Djib.to.auth.username=$JIB_USERNAME -Djib.to.auth.password=$JIB_PASSWORD :fineract-provider:jib -x test
# TODO: @vidakovic Github CodeQL code scans need to be enabled for this repository; this is a paid service; discuss with community
#- uses: anchore/scan-action@v2
# id: scan
# with:
# image: "openmf/fineract:latest"
# acs-report-enable: true
#- name: upload Anchore scan SARIF report
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: ${{ steps.scan.outputs.sarif }}
# category: docker