feat: add deployment workflow for vendaweb-api

This commit is contained in:
joelson 2026-01-05 12:00:48 -03:00
parent 757d547755
commit c4e8996a22
1 changed files with 27 additions and 0 deletions

27
.gitea/deploy-api.yaml Normal file
View File

@ -0,0 +1,27 @@
name: Deploy vendaweb-api
on: [push]
jobs:
build-and-push-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login no Harbor
run: |
echo "${{ secrets.HARBOR_PASSWORD }}" | docker login harbor.jurunense.com -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
- name: Build e Push
run: |
TAG=${{ gitea.sha }}
docker build -t harbor.jurunense.com/library/vendaweb-api:$TAG .
docker tag harbor.jurunense.com/library/vendaweb-api:$TAG harbor.jurunense.com/library/vendaweb-api:latest
docker push harbor.jurunense.com/library/vendaweb-api:$TAG
docker push harbor.jurunense.com/library/vendaweb-api:latest
- name: Notificar Portainer via Webhook
run: |
# O Webhook avisa o Portainer para puxar a nova imagem imediatamente
curl -X POST "${{ secrets.PORTAINER_WEBHOOK_VENDAWEBAPI }}"