From f98c674767220580599708545029982472758743 Mon Sep 17 00:00:00 2001 From: LF Barrile Date: Mon, 9 Dec 2024 20:09:28 -0300 Subject: [PATCH] create depends on between release and build --- .github/workflows/build.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 817f4b62..a0a243ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,10 @@ name: "Build" on: - push: - tags: - - '**' + workflow_run: + workflows: ["Release"] # Nome do fluxo de trabalho de release + types: + - completed # Garantir que o build seja executado quando o fluxo de release for concluĂ­do permissions: id-token: write @@ -80,18 +81,4 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: '${{ env.DOCKERHUB_ORG }}/${{ env.APP_NAME }}:${{ steps.extract_tag.outputs.tag }}' - format: 'table' - trivyignores: '.trivyignore' - ignore-unfixed: true - vuln-type: 'os,library' - severity: 'CRITICAL,HIGH' - exit-code: '1' - - - name: Push Docker image - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} +