Skip to content

Commit f3d16c9

Browse files
committed
chore
1 parent 83db109 commit f3d16c9

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/ci_bake.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)