File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
testdata/memcached-molecule-operator Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,11 @@ docker-push: ## Push docker image with the manager.
45
45
# To properly provided solutions that supports more than one platform you should use this option.
46
46
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
47
47
.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
51
49
- docker buildx create --name project-v3-builder
52
50
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 .
54
52
- docker buildx rm project-v3-builder
55
- rm Dockerfile.cross
56
53
57
54
# #@ Deployment
58
55
You can’t perform that action at this time.
0 commit comments