File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -107,21 +107,20 @@ jobs:
107107 - name : Run tests
108108 run : echo "Running tests..."
109109
110- # - name: Build for analysis
111- # id: build-for-analysis
112- # if: ${{ github.event_name == 'pull_request' }}
113- # uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
114- # with:
115- # context: ./nestjs-project
116- # file: ./nestjs-project/Dockerfile.prod
117- # push: false
118- # load: true
119- # tags: ${{ steps.meta.outputs.tags }}
120- # labels: ${{ steps.meta.outputs.labels }}
121- # cache-from: type=gha
122- # cache-to: type=gha,mode=max
123- # secrets: |
124- # github_token=${{ secrets.GITHUB_TOKEN }}
110+ - name : Build for analysis
111+ id : build-for-analysis
112+ if : ${{ github.event_name == 'pull_request' }}
113+ uses : docker/bake-action@v6
114+ env :
115+ github_token : ${{ secrets.GITHUB_TOKEN }}
116+ with :
117+ push : false
118+ load : true
119+ set : |
120+ prod.cache-from=type=gha
121+ prod.cache-to=type=gha,mode=max
122+ prod.tags=${{ steps.meta.outputs.tags }}
123+ prod.labels=${{ steps.meta.outputs.labels }}
125124
126125 # - name: Analyze for critical and high CVEs
127126 # id: docker-scout-cves
You can’t perform that action at this time.
0 commit comments