FINERACT-2337 Fix docker publish for tags
This commit is contained in:
@@ -28,11 +28,6 @@ jobs:
|
|||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
|
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.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
|
- name: Get Git Hashes
|
||||||
run: |
|
run: |
|
||||||
echo "short_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "short_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
@@ -41,8 +36,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build the Apache Fineract image
|
- name: Build the Apache Fineract image
|
||||||
run: |
|
run: |
|
||||||
TAGS=${{ steps.extract_branch.outputs.branch }}
|
TAGS=${{ github.ref_name }}
|
||||||
if [ "${{ steps.extract_branch.outputs.branch }}" == "develop" ]; then
|
if [ "${{ github.ref_name }}" == "develop" ]; then
|
||||||
TAGS="$TAGS,${{ steps.git_hashes.outputs.short_hash }},${{ steps.git_hashes.outputs.long_hash }}"
|
TAGS="$TAGS,${{ steps.git_hashes.outputs.short_hash }},${{ steps.git_hashes.outputs.long_hash }}"
|
||||||
fi
|
fi
|
||||||
./gradlew --no-daemon --console=plain :fineract-provider:jib -x test -x cucumber \
|
./gradlew --no-daemon --console=plain :fineract-provider:jib -x test -x cucumber \
|
||||||
|
|||||||
Reference in New Issue
Block a user