Files
cbsnexora-backend/.github/workflows/publish-dockerhub.yml
T
dependabot[bot]andAdam Saghy 2d17811a0a Bump actions/checkout from 5.0.1 to 6.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.1 to 6.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/93cb6efe18208431cddfb8368fd83d5badbf9bfd...8e8c483db84b4bee98b60c0593521ed34d9990e8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 12:41:06 +01:00

49 lines
1.6 KiB
YAML

name: Fineract Publish to DockerHub
on:
push:
branches:
- develop
tags:
- 1.*
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
steps:
- name: Checkout Source Code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5
with:
java-version: '21'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
- name: Get Git Hashes
run: |
echo "short_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "long_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
id: git_hashes
- name: Build the Apache Fineract image
run: |
TAGS=${{ github.ref_name }}
if [ "${{ github.ref_name }}" == "develop" ]; then
TAGS="$TAGS,${{ steps.git_hashes.outputs.short_hash }},${{ steps.git_hashes.outputs.long_hash }}"
fi
./gradlew --no-daemon --console=plain :fineract-provider:jib -x test -x cucumber \
-Djib.to.auth.username=${{secrets.DOCKERHUB_USER}} \
-Djib.to.auth.password=${{secrets.DOCKERHUB_TOKEN}} \
-Djib.from.platforms=linux/amd64,linux/arm64 \
-Djib.to.image=apache/fineract \
-Djib.to.tags=$TAGS