ajuste webhook
All checks were successful
Deploy NestJS API / build-and-push-deploy (push) Successful in 24s

This commit is contained in:
2026-01-02 15:42:32 -05:00
parent d222ce1133
commit 7068f33a6f

View File

@@ -14,7 +14,6 @@ jobs:
- name: Build e Push
run: |
# Tag imutável para Rollback (SHA do Git)
TAG=${{ gitea.sha }}
docker build -t 172.35.0.216/library/api-teste:$TAG .
docker tag 172.35.0.216/library/api-teste:$TAG 172.35.0.216/library/api-teste:latest
@@ -22,19 +21,11 @@ jobs:
docker push 172.35.0.216/library/api-teste:$TAG
docker push 172.35.0.216/library/api-teste:latest
- name: Deploy Automático via SSH
uses: https://github.com/appleboy/ssh-action@master
with:
host: 172.35.0.216
username: root
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
docker service update \
--image 172.35.0.216/library/api-teste:latest \
--with-registry-auth \
api_teste_service || \
docker service create \
--name api_teste_service \
--publish 3001:3000 \
--with-registry-auth \
172.35.0.216/library/api-teste:latest
- name: Deploy
run: |
curl -X POST http://172.35.0.216:9000/api/webhooks/182007f4-06d9-48fc-ab68-885fb434765c
# LEGADO Deploy via SSH (Mantenha se precisar rodar comandos extras como migrations)
# - name: Deploy Automático via SSH
# uses: https://github.com/appleboy/ssh-action@master
# ... (seu código atual)