Files
Vendaweb-portal/.gitea/workflows/deploy.yaml
simplifique ba4bcb0494
All checks were successful
/ build-push (push) Successful in 9m10s
feat: enhance build/push step in deploy workflow with version tagging
2026-01-02 21:08:15 -05:00

25 lines
732 B
YAML

on: [push]
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login Harbor
run: echo "${{ secrets.HARBOR_PASSWORD }}" | docker login 172.35.0.216 -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
- name: Build/Push with Tagging
run: |
REPO="172.35.0.216/library/vendaweb-portal"
VERSION="v${{ gitea.run_number }}"
echo "Iniciando build da versão: $VERSION"
docker build -t $REPO:$VERSION -t $REPO:latest .
docker push $REPO:$VERSION
docker push $REPO:latest
- name: Webhook Portainer
run: curl -X POST "${{ secrets.PORTAINER_WEBHOOK_FRONT }}"