2 Commits

Author SHA1 Message Date
3db2806a04 fix gitea tag
All checks were successful
Build and Deploy Spring Boot Server / build (push) Successful in 9m53s
Build and Deploy Versioned Spring Boot Server / build (push) Successful in 9m58s
2025-01-12 11:46:29 +01:00
d26a9bffc5 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
2025-01-12 11:23:17 +01:00

View File

@@ -2,8 +2,8 @@ name: Build and Deploy Versioned Spring Boot Server
on: on:
push: push:
tags: # Match all tags tags:
- "*" - "*" # Match all tags
jobs: jobs:
build: build:
@@ -43,7 +43,11 @@ jobs:
- name: Extract Tag Version - name: Extract Tag Version
id: extract_version id: extract_version
run: | run: |
TAG_VERSION=${GITEA_REF#refs/tags/} TAG_VERSION=$(echo "${GITHUB_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 echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
# 7. Build the Docker image with the tag # 7. Build the Docker image with the tag