Skip to content

Commit

Permalink
create depends on between release and build
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbarrile01 committed Dec 9, 2024
1 parent 313ff25 commit f98c674
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit f98c674

Please sign in to comment.