File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ jobs:
228228 with :
229229 driver-opts : network=host
230230
231- - name : docker / build & push & tag grype
231+ - name : docker / build image locally
232232 if : env.WORKFLOW_BUILD == 'true'
233233 id : docker-build
234234 uses : docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d
@@ -257,7 +257,7 @@ jobs:
257257 cache-db : true
258258
259259 - name : grype / fail
260- if : env.WORKFLOW_BUILD == 'true' && (failure() || steps.grype.outcome == 'failure')
260+ if : env.WORKFLOW_BUILD == 'true' && (failure() || steps.grype.outcome == 'failure') && steps.docker-build.outcome == 'success'
261261 uses : anchore/scan-action@dc6246fcaf83ae86fcc6010b9824c30d7320729e
262262 with :
263263 image : ${{ env.DOCKER_CACHE_GRYPE }}
@@ -267,7 +267,7 @@ jobs:
267267 by-cve : true
268268 cache-db : true
269269
270- - name : docker / build & push
270+ - name : docker / build image from cache and push to registries
271271 if : env.WORKFLOW_BUILD == 'true'
272272 uses : docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d
273273 with :
You can’t perform that action at this time.
0 commit comments