Update build.yml

This commit is contained in:
Max W. 2024-03-02 23:13:45 +01:00
parent 9c5a340b14
commit d0d0a555b7

View File

@ -42,7 +42,7 @@ jobs:
with: with:
name: jar-artifact name: jar-artifact
path: build/libs/*.jar path: build/libs/*.jar
build-docker-image: build-docker-image:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: build-jar needs: build-jar
@ -50,12 +50,7 @@ jobs:
- name: Extract tag name - name: Extract tag name
id: get_tag id: get_tag
run: | run: |
TAG_NAME=$(echo $GITEA_REF | sed -n 's/refs\/tags\/v\([0-9.]*\)/\1/p') echo TAG_NAME=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
if [ -z "$TAG_NAME" ]; then
echo "Tag does not start with 'v', skipping..."
exit 78 # Exiting with specific status to mark job as skipped
fi
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
- name: Initialize Docker runtime - name: Initialize Docker runtime
run: | run: |