File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -172,21 +172,25 @@ jobs:
172172 # # only-severities: critical,high
173173 # # github-token: ${{ secrets.GITHUB_TOKEN }}
174174
175- # - name: Build final
176- # id: build-final
177- # uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
178- # with:
179- # context: ./nestjs-project
180- # file: ./nestjs-project/Dockerfile.prod
181- # push: ${{ github.event_name != 'pull_request' }}
182- # tags: ${{ steps.meta.outputs.tags }}
183- # labels: ${{ steps.meta.outputs.labels }}
184- # cache-from: type=gha
185- # cache-to: type=gha,mode=max
186- # provenance: mode=max
187- # sbom: true
188- # secrets: |
189- # github_token=${{ secrets.GITHUB_TOKEN }}
175+ - name : Build final
176+ id : build-final
177+ uses : docker/bake-action@v6
178+ env :
179+ github_token : ${{ secrets.GITHUB_TOKEN }}
180+ with :
181+ push : ${{ github.event_name != 'pull_request' }}
182+ provenance : mode=max
183+ sbom : true
184+ targets : prod
185+ files : |
186+ ./docker-bake.hcl
187+ cwd://${{ steps.meta.outputs.bake-file }}
188+ set : |
189+ prod.cache-from=type=gha
190+ prod.cache-to=type=gha,mode=max
191+ prod.tags=${{ steps.meta.outputs.tags }}
192+
193+
190194
191195
192196
You can’t perform that action at this time.
0 commit comments