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

feat: Use debug stages in local docker build make commands #234

Merged
merged 4 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
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
12 changes: 8 additions & 4 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ release-local.amd64: clean
--build-arg RELEASE_VERSION="$(TAG)" \
--build-arg BUILD_TIME="$(BUILD_TIME)" \
--build-arg CONTROLLER_TOOLS_VERSION="$(CONTROLLER_TOOLS_VERSION)" \
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-amd64 .
--platform linux/amd64
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-amd64 \
--platform linux/amd64 \
--target debug \
.
docker tag $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-amd64 $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)

.PHONY: release-local.arm64
Expand All @@ -186,8 +188,10 @@ release-local.arm64: clean
--build-arg RELEASE_VERSION="$(TAG)" \
--build-arg BUILD_TIME="$(BUILD_TIME)" \
--build-arg CONTROLLER_TOOLS_VERSION="$(CONTROLLER_TOOLS_VERSION)" \
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-arm64 .\
--platform linux/arm64
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-arm64 \
--platform linux/arm64 \
--target debug \
.
docker tag $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-arm64 $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)

.PHONY: push-local
Expand Down
14 changes: 9 additions & 5 deletions scheduler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ release-local.amd64: clean
--build-arg RELEASE_VERSION="$(RELEASE_VERSION)" \
--build-arg SCHEDULER_COMPATIBLE_K8S_VERSION="$(SCHEDULER_COMPATIBLE_K8S_VERSION)" \
--build-arg BUILD_TIME="$(BUILD_TIME)" \
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-amd64 . \
--platform linux/amd64
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-amd64 \
--platform linux/amd64 \
--target debug \
.
docker tag $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-amd64 $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)

.PHONY: release-local.arm64
Expand All @@ -136,8 +138,10 @@ release-local.arm64: clean
--build-arg RELEASE_VERSION="$(RELEASE_VERSION)" \
--build-arg SCHEDULER_COMPATIBLE_K8S_VERSION="$(SCHEDULER_COMPATIBLE_K8S_VERSION)" \
--build-arg BUILD_TIME="$(BUILD_TIME)" \
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-arm64 . \
--platform linux/arm64
-t $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-arm64 \
--platform linux/arm64 \
--target debug \
.
docker tag $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-arm64 $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)

.PHONY: push-local
Expand All @@ -147,4 +151,4 @@ push-local:
elif [[ "${ARCH}" == "arm64" ]]; then \
docker push $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-arm64 ;\
fi
docker push $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)
docker push $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)