Skip to content

Changed docker-publish and fineract-client-publish workflows to use d… #988

Changed docker-publish and fineract-client-publish workflows to use d…

Changed docker-publish and fineract-client-publish workflows to use d… #988

name: Publish Fineract client to Mifos Artifactory
on:
push:
branches:
- develop-mifos
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-20.04
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
steps:
- uses: actions/checkout@v3
- name: Generate build number
uses: onyxmueller/build-tag-number@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: Build the image
run: ./gradlew publish -Pfineract.config.username=$ARTIFACTORY_USERNAME -Pfineract.config.password=$ARTIFACTORY_PASSWORD -Pfineract.release.version=${BUILD_NUMBER}