fix: porta #11
@ -228,7 +228,7 @@ jobs:
|
||||
docker run -d \
|
||||
--name bcards-prod \
|
||||
--restart unless-stopped \
|
||||
-p 5002:8080 \
|
||||
-p 8080:8080 \
|
||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||
-e ASPNETCORE_URLS=http://+:8080 \
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
@ -261,7 +261,7 @@ jobs:
|
||||
docker run -d \
|
||||
--name bcards-prod \
|
||||
--restart unless-stopped \
|
||||
-p 5002:8080 \
|
||||
-p 8080:8080 \
|
||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||
-e ASPNETCORE_URLS=http://+:8080 \
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
@ -276,11 +276,11 @@ jobs:
|
||||
|
||||
# Verifica Servidor 1
|
||||
echo "Verificando Servidor 1 (ARM)..."
|
||||
ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 'curl -f http://localhost:5002/health || echo "⚠️ Servidor 1 pode não estar respondendo"'
|
||||
ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 'curl -f http://localhost:8080/health || echo "⚠️ Servidor 1 pode não estar respondendo"'
|
||||
|
||||
# Verifica Servidor 2
|
||||
echo "Verificando Servidor 2 (ARM)..."
|
||||
ssh -o StrictHostKeyChecking=no ubuntu@129.146.116.218 'curl -f http://localhost:5002/health || echo "⚠️ Servidor 2 pode não estar respondendo"'
|
||||
ssh -o StrictHostKeyChecking=no ubuntu@129.146.116.218 'curl -f http://localhost:8080/health || echo "⚠️ Servidor 2 pode não estar respondendo"'
|
||||
|
||||
deploy-staging:
|
||||
name: Deploy to Staging (x86 - Local)
|
||||
@ -337,7 +337,7 @@ jobs:
|
||||
docker run -d \
|
||||
--name bcards-staging \
|
||||
--restart unless-stopped \
|
||||
-p 5002:8080 \
|
||||
-p 8080:8080 \
|
||||
-e ASPNETCORE_ENVIRONMENT=Staging \
|
||||
-e ASPNETCORE_URLS=http://+:8080 \
|
||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
||||
@ -351,7 +351,7 @@ jobs:
|
||||
sleep 30
|
||||
|
||||
echo "Verificando Servidor Staging (x86)..."
|
||||
ssh -o StrictHostKeyChecking=no ubuntu@192.168.0.100 'curl -f http://localhost:5002/health || echo "⚠️ Servidor staging pode não estar respondendo"'
|
||||
ssh -o StrictHostKeyChecking=no ubuntu@192.168.0.100 'curl -f http://localhost:8080/health || echo "⚠️ Servidor staging pode não estar respondendo"'
|
||||
|
||||
cleanup:
|
||||
name: Cleanup Old Resources
|
||||
|
||||
@ -15,11 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{02EA
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Pipeline", "Pipeline", "{3F3DEEDF-9E0A-434D-8130-1FBAC43FD1F7}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
docker-compose.staging.yml = docker-compose.staging.yml
|
||||
docker-compose.yml = docker-compose.yml
|
||||
Dockerfile.release = Dockerfile.release
|
||||
.gitea\workflows\pr-validation.yml = .gitea\workflows\pr-validation.yml
|
||||
.gitea\workflows\release-deploy.yml = .gitea\workflows\release-deploy.yml
|
||||
.gitea\workflows\deploy-bcards.yml = .gitea\workflows\deploy-bcards.yml
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
|
||||
Loading…
Reference in New Issue
Block a user