Release/versao1 #18
@ -101,7 +101,7 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: linux/arm64
|
||||
|
||||
- name: Determine build settings
|
||||
id: settings
|
||||
@ -109,14 +109,14 @@ jobs:
|
||||
BRANCH_NAME="${{ github.ref_name }}"
|
||||
|
||||
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 "platform=linux/arm64" >> $GITHUB_OUTPUT
|
||||
echo "environment=Production" >> $GITHUB_OUTPUT
|
||||
echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT
|
||||
echo "deploy_target=production" >> $GITHUB_OUTPUT
|
||||
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=$(echo "$VERSION_RAW" | sed 's/^[Vv]//')
|
||||
[ -z "$VERSION" ] && VERSION="0.0.1"
|
||||
@ -124,7 +124,7 @@ jobs:
|
||||
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "platform=linux/arm64" >> $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 "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user