fix: update health check status message to 'JURUNENSE HOME CENTER BR V2'
Deploy NestJS API / build-and-push-deploy (push) Successful in 2m42s Details

This commit is contained in:
JuruSysadmin 2026-01-06 11:18:19 -03:00
parent 95850ea39b
commit 2b91449137
2 changed files with 11 additions and 8 deletions

View File

@ -14,14 +14,17 @@ jobs:
- name: Build e Push - name: Build e Push
run: | run: |
TAG=${{ gitea.sha }} # Usando o short SHA para uma tag mais limpa
docker build -t 10.1.1.124:8082/library/vendaweb-api:$TAG . TAG=$(echo ${{ gitea.sha }} | cut -c1-7)
docker tag 10.1.1.124:8082/library/vendaweb-api:$TAG 10.1.1.124:8082/library/vendaweb-api:latest IMAGE_NAME="10.1.1.124:8082/library/vendaweb-api"
docker push 10.1.1.124:8082/library/vendaweb-api:$TAG docker build -t $IMAGE_NAME:$TAG .
docker push 10.1.1.124:8082/library/vendaweb-api:latest docker tag $IMAGE_NAME:$TAG $IMAGE_NAME:latest
docker push $IMAGE_NAME:$TAG
docker push $IMAGE_NAME:latest
- name: Notificar Portainer via Webhook - name: Notificar Portainer via Webhook
run: | run: |
# O Webhook avisa o Portainer para puxar a nova imagem imediatamente # O segredo PORTAINER_WEBHOOK_VENDAWEBAPI deve conter a URL completa gerada na Stack
curl -X POST "${{ secrets.PORTAINER_WEBHOOK_VENDAWEBAPI }}" curl -f -X POST "${{ secrets.PORTAINER_WEBHOOK_VENDAWEBAPI }}"

View File

@ -14,7 +14,7 @@ export class AppController {
@Get('health') @Get('health')
@ApiOperation({ summary: 'Health check' }) @ApiOperation({ summary: 'Health check' })
healthCheck() { healthCheck() {
return { status: 'JURUNENSE HOME CENTER BR ' }; return { status: 'JURUNENSE HOME CENTER BR V2' };
} }
} }