Primeiro deploy da API NestJS
Some checks failed
Deploy NestJS API / build-and-push (push) Failing after 54s

This commit is contained in:
2026-01-02 13:39:01 -05:00
commit ee498a66c5
18 changed files with 10463 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
name: Deploy NestJS API
on: [push]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login no Harbor
run: |
echo "${{ secrets.HARBOR_PASSWORD }}" | docker login 172.35.0.216 -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
- name: Build e Push
run: |
# Usando o ID do commit para versionamento (Rollback fácil)
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
docker push 172.35.0.216/library/api-teste:$TAG
docker push 172.35.0.216/library/api-teste:latest