Merge pull request 'fix: porta' (#11) from feat/live-preview into main
All checks were successful
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 14m12s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Successful in 2m8s
BCards Deployment Pipeline / Deploy to Staging (x86 - Local) (push) Has been skipped
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s
All checks were successful
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 14m12s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Successful in 2m8s
BCards Deployment Pipeline / Deploy to Staging (x86 - Local) (push) Has been skipped
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s
Reviewed-on: http://git.carneiro.ddnsfree.com/ricardo/BCards/pulls/11
This commit is contained in:
commit
a7a5fa7c79
@ -228,7 +228,7 @@ jobs:
|
|||||||
docker run -d \
|
docker run -d \
|
||||||
--name bcards-prod \
|
--name bcards-prod \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
-p 5002:8080 \
|
-p 8080:8080 \
|
||||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||||
-e ASPNETCORE_URLS=http://+:8080 \
|
-e ASPNETCORE_URLS=http://+:8080 \
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
@ -261,7 +261,7 @@ jobs:
|
|||||||
docker run -d \
|
docker run -d \
|
||||||
--name bcards-prod \
|
--name bcards-prod \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
-p 5002:8080 \
|
-p 8080:8080 \
|
||||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||||
-e ASPNETCORE_URLS=http://+:8080 \
|
-e ASPNETCORE_URLS=http://+:8080 \
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
@ -276,11 +276,11 @@ jobs:
|
|||||||
|
|
||||||
# Verifica Servidor 1
|
# Verifica Servidor 1
|
||||||
echo "Verificando Servidor 1 (ARM)..."
|
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
|
# Verifica Servidor 2
|
||||||
echo "Verificando Servidor 2 (ARM)..."
|
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:
|
deploy-staging:
|
||||||
name: Deploy to Staging (x86 - Local)
|
name: Deploy to Staging (x86 - Local)
|
||||||
@ -337,7 +337,7 @@ jobs:
|
|||||||
docker run -d \
|
docker run -d \
|
||||||
--name bcards-staging \
|
--name bcards-staging \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
-p 5002:8080 \
|
-p 8080:8080 \
|
||||||
-e ASPNETCORE_ENVIRONMENT=Staging \
|
-e ASPNETCORE_ENVIRONMENT=Staging \
|
||||||
-e ASPNETCORE_URLS=http://+:8080 \
|
-e ASPNETCORE_URLS=http://+:8080 \
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
|
||||||
@ -351,7 +351,7 @@ jobs:
|
|||||||
sleep 30
|
sleep 30
|
||||||
|
|
||||||
echo "Verificando Servidor Staging (x86)..."
|
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:
|
cleanup:
|
||||||
name: Cleanup Old Resources
|
name: Cleanup Old Resources
|
||||||
|
|||||||
@ -15,11 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{02EA
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Pipeline", "Pipeline", "{3F3DEEDF-9E0A-434D-8130-1FBAC43FD1F7}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Pipeline", "Pipeline", "{3F3DEEDF-9E0A-434D-8130-1FBAC43FD1F7}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
docker-compose.staging.yml = docker-compose.staging.yml
|
.gitea\workflows\deploy-bcards.yml = .gitea\workflows\deploy-bcards.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
|
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user