Skip to content

Commit 2fe6796

Browse files
committed
[upgrade] to latest workflow
1 parent abf93eb commit 2fe6796

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker.yml

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

0 commit comments

Comments
 (0)