Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f49530653b |
@@ -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,11 +43,7 @@ jobs:
|
||||
- name: Extract Tag Version
|
||||
id: extract_version
|
||||
run: |
|
||||
TAG_VERSION=$(echo "${GITHUB_REF}" | sed 's#refs/tags/##')
|
||||
if [ -z "$TAG_VERSION" ]; then
|
||||
echo "Error: TAG_VERSION is empty."
|
||||
exit 1
|
||||
fi
|
||||
TAG_VERSION=${GITEA_REF#refs/tags/}
|
||||
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
|
||||
|
||||
# 7. Build the Docker image with the tag
|
||||
|
||||
Reference in New Issue
Block a user