fix: build de release com arquivo não encontrado
Some checks failed
BCards Deployment Pipeline / Run Tests (push) Successful in 2s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 8m24s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Has been skipped
BCards Deployment Pipeline / Deploy to Release Swarm (ARM) (push) Failing after 5s
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s
Some checks failed
BCards Deployment Pipeline / Run Tests (push) Successful in 2s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 8m24s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Has been skipped
BCards Deployment Pipeline / Deploy to Release Swarm (ARM) (push) Failing after 5s
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s
This commit is contained in:
parent
ee4db7a910
commit
caefa20110
@ -118,7 +118,8 @@ jobs:
|
||||
elif [[ "$BRANCH_NAME" == Release/* ]]; then
|
||||
# Release = Swarm tests (Orange Pi arm64) - usando Dockerfile simples também
|
||||
VERSION_RAW=${BRANCH_NAME#Release/}
|
||||
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]//')
|
||||
# Only remove V/v if it's at the start and followed by a number (like v1.0.0)
|
||||
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]\([0-9]\)/\1/')
|
||||
[ -z "$VERSION" ] && VERSION="0.0.1"
|
||||
|
||||
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
||||
@ -544,12 +545,16 @@ jobs:
|
||||
if: startsWith(github.ref_name, 'Release/')
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract version
|
||||
id: version
|
||||
run: |
|
||||
BRANCH_NAME="${{ github.ref_name }}"
|
||||
VERSION_RAW=${BRANCH_NAME#Release/}
|
||||
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]//')
|
||||
# Only remove V/v if it's at the start and followed by a number (like v1.0.0)
|
||||
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]\([0-9]\)/\1/')
|
||||
[ -z "$VERSION" ] && VERSION="0.0.1"
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "📦 Deploying version: $VERSION"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user