Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 1f7f12e

Browse files
committed
ci: fix tagging to detached head
1 parent f296c99 commit 1f7f12e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/docker-images.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
steps:
4646
- name: Checkout
4747
uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
fetch-tags: true
4851

4952
- name: Setup Java env 🏗
5053
uses: actions/setup-java@v4
@@ -67,9 +70,9 @@ jobs:
6770
id: push
6871
run: |
6972
if [ "${{startsWith(github.ref, 'refs/tags/v')}}" = "true" ]; then
70-
./gradlew :processResources :jib -Djib.to.tags=latest
73+
./gradlew :processResources :jib -Djib.to.tags=latest -Djib.console=plain
7174
else
72-
./gradlew :processResources :jib
75+
./gradlew :processResources :jib -Djib.console=plain
7376
fi
7477
7578
echo "version=$(./gradlew -q printVersion)" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)