Skip to content

Commit

Permalink
omit prevenance in buildx to prevent unknown manifests (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Jan 18, 2024
1 parent e0a5b69 commit 06f3ed1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ jobs:
with:
context: .
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
provenance: false
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ docker-push: ## Push docker image with the manager.
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
.PHONY: docker-buildx
docker-buildx: ## Build and push docker image for the manager for cross-platform support
- $(CONTAINER_TOOL) buildx create --name operator-builder --driver-opt image=moby/buildkit:v0.12.3
- $(CONTAINER_TOOL) buildx create --name operator-builder --driver-opt image=moby/buildkit:v0.12.4
- $(CONTAINER_TOOL) buildx use operator-builder
- $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} .
- $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --provenance=false --tag ${IMG} .
- $(CONTAINER_TOOL) buildx rm operator-builder

##@ Deployment
Expand Down

0 comments on commit 06f3ed1

Please sign in to comment.