Skip to content

Commit

Permalink
Remove provenance on temp images
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Aug 4, 2024
1 parent 8ee4887 commit 48a2dba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
PLATFORM: "${{ matrix.platform }}"
IMAGE_TAG: "docker.io/botsudo/nut-upsd:${{ matrix.platform-tag }}-latest"
ACTION: push
# Disable provenance to remove the attestation from the pushed image
# See: https://github.com/docker/buildx/issues/1509
# It makes: docker.io/botsudo/docker-rustpython:<arch>-latest a manifest list
# And docker manifest create does not like that
EXTRA_ARGS: "--provenance=false"

sign-manifest:
name: Sign the docker hub manifest
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PLATFORM ?= linux/amd64

ACTION ?= load
PROGRESS_MODE ?= plain
EXTRA_ARGS ?=

.PHONY: docker-build

Expand All @@ -16,4 +17,5 @@ docker-build:
--build-arg VCS_REF=`git rev-parse HEAD` \
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--$(ACTION) \
$(EXTRA_ARGS) \
./docker

0 comments on commit 48a2dba

Please sign in to comment.