Update build.yml
This commit is contained in:
parent
9c5a340b14
commit
d0d0a555b7
@ -42,7 +42,7 @@ jobs:
|
||||
with:
|
||||
name: jar-artifact
|
||||
path: build/libs/*.jar
|
||||
|
||||
|
||||
build-docker-image:
|
||||
runs-on: ubuntu-22.04
|
||||
needs: build-jar
|
||||
@ -50,12 +50,7 @@ jobs:
|
||||
- name: Extract tag name
|
||||
id: get_tag
|
||||
run: |
|
||||
TAG_NAME=$(echo $GITEA_REF | sed -n 's/refs\/tags\/v\([0-9.]*\)/\1/p')
|
||||
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
|
||||
echo TAG_NAME=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Initialize Docker runtime
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user