63
All checks were successful
Go Linter / Run golangci-lint (api_gateway) (push) Has been skipped
Go Linter / Push Docker Images (api_gateway) (push) Has been skipped
Go Linter / Tag Commit (push) Successful in 6s
Deploy Production / Deploy to Staging (push) Has been skipped
Go Linter / Build golang services (api_gateway) (push) Has been skipped

This commit is contained in:
Alex Shevchuk
2025-09-08 14:55:08 +03:00
parent 5aaadf4fe6
commit 24fb916074

View File

@@ -156,6 +156,7 @@ jobs:
run: | run: |
git fetch --tags git fetch --tags
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.0') LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.0')
echo $LATEST_TAG
if [[ $LATEST_TAG =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then if [[ $LATEST_TAG =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
MAJOR=${BASH_REMATCH[1]} MAJOR=${BASH_REMATCH[1]}
@@ -167,6 +168,8 @@ jobs:
PATCH=0 PATCH=0
fi fi
echo $MAJOR.$MINOR.$PATCH
NEW_PATCH=$((PATCH + 1)) NEW_PATCH=$((PATCH + 1))
NEW_TAG="v${MAJOR}.${MINOR}.${NEW_PATCH}" NEW_TAG="v${MAJOR}.${MINOR}.${NEW_PATCH}"