tag
Some checks failed
Build and Deploy Spring Boot Server / build (push) Has been cancelled
Build and Deploy Versioned Spring Boot Server / build (push) Failing after 9m46s

This commit is contained in:
2025-01-12 11:23:17 +01:00
parent 25e70ddf68
commit d26a9bffc5

View File

@@ -2,8 +2,8 @@ name: Build and Deploy Versioned Spring Boot Server
on:
push:
tags: # Match all tags
- "*"
tags:
- "*" # Match all tags
jobs:
build:
@@ -43,7 +43,11 @@ jobs:
- name: Extract Tag Version
id: extract_version
run: |
TAG_VERSION=${GITEA_REF#refs/tags/}
TAG_VERSION=$(echo "${GITEA_REF}" | sed 's#refs/tags/##')
if [ -z "$TAG_VERSION" ]; then
echo "Error: TAG_VERSION is empty."
exit 1
fi
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
# 7. Build the Docker image with the tag