Skip to content

Commit 0313bef

Browse files
Remove broken work-around for specifying build platforms for the operator image
1 parent bbe095f commit 0313bef

File tree

1 file changed

+2
-5
lines changed
  • testdata/memcached-molecule-operator

1 file changed

+2
-5
lines changed

testdata/memcached-molecule-operator/Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,11 @@ docker-push: ## Push docker image with the manager.
4545
# To properly provided solutions that supports more than one platform you should use this option.
4646
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
4747
.PHONY: docker-buildx
48-
docker-buildx: test ## Build and push docker image for the manager for cross-platform support
49-
# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
50-
sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
48+
docker-buildx: ## Build and push docker image for the manager for cross-platform support
5149
- docker buildx create --name project-v3-builder
5250
docker buildx use project-v3-builder
53-
- docker buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross .
51+
- docker buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile .
5452
- docker buildx rm project-v3-builder
55-
rm Dockerfile.cross
5653

5754
##@ Deployment
5855

0 commit comments

Comments
 (0)