fix: deploy de release
Some checks failed
BCards Deployment Pipeline / Run Tests (push) Successful in 4s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 6m48s
BCards Deployment Pipeline / Deploy to Release Swarm (ARM) (push) Failing after 0s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Has been skipped
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 4s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 6m48s
BCards Deployment Pipeline / Deploy to Release Swarm (ARM) (push) Failing after 0s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Has been skipped
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
a7e1677949
commit
ee4db7a910
@ -101,7 +101,7 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/arm64
|
||||||
|
|
||||||
- name: Determine build settings
|
- name: Determine build settings
|
||||||
id: settings
|
id: settings
|
||||||
@ -109,14 +109,14 @@ jobs:
|
|||||||
BRANCH_NAME="${{ github.ref_name }}"
|
BRANCH_NAME="${{ github.ref_name }}"
|
||||||
|
|
||||||
if [ "$BRANCH_NAME" = "main" ]; then
|
if [ "$BRANCH_NAME" = "main" ]; then
|
||||||
# Main = Produção (ARM64) - usando Dockerfile da raiz como QRRapido
|
# Main = Produção (ARM64) - usando Dockerfile simples
|
||||||
echo "tag=latest" >> $GITHUB_OUTPUT
|
echo "tag=latest" >> $GITHUB_OUTPUT
|
||||||
echo "platform=linux/arm64" >> $GITHUB_OUTPUT
|
echo "platform=linux/arm64" >> $GITHUB_OUTPUT
|
||||||
echo "environment=Production" >> $GITHUB_OUTPUT
|
echo "environment=Production" >> $GITHUB_OUTPUT
|
||||||
echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT
|
echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT
|
||||||
echo "deploy_target=production" >> $GITHUB_OUTPUT
|
echo "deploy_target=production" >> $GITHUB_OUTPUT
|
||||||
elif [[ "$BRANCH_NAME" == Release/* ]]; then
|
elif [[ "$BRANCH_NAME" == Release/* ]]; then
|
||||||
# Release = Swarm tests (Orange Pi arm64)
|
# Release = Swarm tests (Orange Pi arm64) - usando Dockerfile simples também
|
||||||
VERSION_RAW=${BRANCH_NAME#Release/}
|
VERSION_RAW=${BRANCH_NAME#Release/}
|
||||||
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]//')
|
VERSION=$(echo "$VERSION_RAW" | sed 's/^[Vv]//')
|
||||||
[ -z "$VERSION" ] && VERSION="0.0.1"
|
[ -z "$VERSION" ] && VERSION="0.0.1"
|
||||||
@ -124,7 +124,7 @@ jobs:
|
|||||||
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "platform=linux/arm64" >> $GITHUB_OUTPUT
|
echo "platform=linux/arm64" >> $GITHUB_OUTPUT
|
||||||
echo "environment=Testing" >> $GITHUB_OUTPUT
|
echo "environment=Testing" >> $GITHUB_OUTPUT
|
||||||
echo "dockerfile=Dockerfile.release" >> $GITHUB_OUTPUT
|
echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT
|
||||||
echo "deploy_target=testing" >> $GITHUB_OUTPUT
|
echo "deploy_target=testing" >> $GITHUB_OUTPUT
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user