Skip to content

Commit

Permalink
invert behavior of docker prov for quicker CI docker smoke-test witho…
Browse files Browse the repository at this point in the history
…ut push side-effect
  • Loading branch information
fmigneault committed Mar 8, 2025
1 parent c1ab4d3 commit a894cd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ jobs:
needs: tests
if: ${{ success() && (contains(github.ref, 'refs/tags') || github.ref == 'refs/heads/master') }}
runs-on: ubuntu-latest
env:
# enabled provenance attestation during build/push (see Makefile for details)
DOCKER_PROV: "true"
steps:
- uses: actions/checkout@v2
with:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,10 @@ DOCKER_REPO ?= pavics/weaver
# employ the remote registry reference to provide the relevant traceability.

# whether to enable Provenance and SBOM tracking of built images
DOCKER_PROV ?= true
# Disable by default to ensure that any operation that needs a local docker (eg: 'docker-test' target)
# doesn't lead to an unintended push to the remote registry. This should be enabled explicitly only
# for tagged releases for which we explicitly want traceability.
DOCKER_PROV ?= false
ifeq ($(DOCKER_PROV),true)
DOCKER_BUILDER_STEP := docker-builder
DOCKER_BUILDER_NAME ?= docker-prov
Expand Down

0 comments on commit a894cd9

Please sign in to comment.