Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add image build dependency #639

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ images: image-builder image-apiserver image-binding-apiserver image-clustersynch

image-builder:
docker buildx build \
-t $(REGISTRY)/builder-$(GOARCH):$(BUILDER_IMAGE_TAG) \
-t $(REGISTRY)/builder-$(HOSTARCH):$(BUILDER_IMAGE_TAG) \
--platform=linux/$(GOARCH) \
--load \
-f builder.dockerfile . ; \
Expand All @@ -96,31 +96,31 @@ build-image-%:
GOARCH=$(HOSTARCH) $(MAKE) image-builder
$(MAKE) $(subst build-,,$@)

image-apiserver:
image-apiserver: image-builder
docker buildx build \
-t $(REGISTRY)/apiserver-$(GOARCH):$(VERSION) \
--platform=linux/$(GOARCH) \
--load \
--build-arg BUILDER_IMAGE=$(REGISTRY)/builder-$(HOSTARCH):$(BUILDER_IMAGE_TAG) \
--build-arg BIN_NAME=apiserver .

image-binding-apiserver:
image-binding-apiserver: image-builder
docker buildx build \
-t $(REGISTRY)/binding-apiserver-$(GOARCH):$(VERSION) \
--platform=linux/$(GOARCH) \
--load \
--build-arg BUILDER_IMAGE=$(REGISTRY)/builder-$(HOSTARCH):$(BUILDER_IMAGE_TAG) \
--build-arg BIN_NAME=binding-apiserver .

image-clustersynchro-manager:
image-clustersynchro-manager: image-builder
docker buildx build \
-t $(REGISTRY)/clustersynchro-manager-$(GOARCH):$(VERSION) \
--platform=linux/$(GOARCH) \
--load \
--build-arg BUILDER_IMAGE=$(REGISTRY)/builder-$(HOSTARCH):$(BUILDER_IMAGE_TAG) \
--build-arg BIN_NAME=clustersynchro-manager .

image-controller-manager:
image-controller-manager: image-builder
docker buildx build \
-t $(REGISTRY)/controller-manager-$(GOARCH):$(VERSION) \
--platform=linux/$(GOARCH) \
Expand Down
Loading