Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4.7.0 to 4.7.1. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/3a4f6e1af504cf6a31855fa899c6aa5355ba6c12...c5195efecf7bdfc987ee8bae7a71cb8b11521c00) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: 4.7.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
name: Fineract Publish to DockerHub
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
tags:
|
|
- 1.*
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
env:
|
|
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
|
|
steps:
|
|
- name: Checkout Source Code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'zulu'
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # v4.3.1
|
|
|
|
- name: Extract branch name
|
|
shell: bash
|
|
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
|
id: extract_branch
|
|
|
|
- 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=${{ steps.extract_branch.outputs.branch }}
|
|
if [ "${{ steps.extract_branch.outputs.branch }}" == "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
|