Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarocabanas committed Jan 3, 2025
1 parent 5371c42 commit 370b9e5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions build/container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -266,19 +266,29 @@ publish/multi-arch-base-manifest :
@printf 'Target: publish/base-manifest\n'
@printf 'Image: $(DOCKER_IMAGE_NAME):$(IMAGE_VERSION)'
@printf '\n================================================================\n'
ifneq ($(FIPS),)
@(docker manifest create \
$(DOCKER_IMAGE_NAME):$(IMAGE_VERSION) \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm64 \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-amd64)
else
@(docker manifest create \
$(DOCKER_IMAGE_NAME):$(IMAGE_VERSION) \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm64 \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-amd64)
endif
@docker manifest push $(DOCKER_IMAGE_NAME):$(IMAGE_VERSION)


# [RC] Shortcut to build all supported multi arch bases and publish as RC
.PHONY : publish/multi-arch-base-rc
publish/multi-arch-base-rc : export IMAGE_VERSION=$(AGENT_VERSION)-rc
publish/multi-arch-base-rc : export DOCKER_BUILD_TAG_PREFIX=$(IMAGE_VERSION)
publish/multi-arch-base-rc : build/base-arm64
ifneq ($(FIPS),)
publish/multi-arch-base-rc : build/base-arm
endif
publish/multi-arch-base-rc : build/base-amd64
publish/multi-arch-base-rc : publish/multi-arch-base-manifest

Expand All @@ -302,19 +312,28 @@ publish/multi-arch-k8s-events-forwarder-manifest :
@printf 'Target: publish/k8s-events-forwarder-manifest\n'
@printf 'Image: $(DOCKER_IMAGE_NAME):$(IMAGE_VERSION)'
@printf '\n================================================================\n'
ifneq ($(FIPS),)
@(docker manifest create \
$(DOCKER_IMAGE_NAME):$(IMAGE_VERSION) \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm64 \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-amd64)
else
@(docker manifest create \
$(DOCKER_IMAGE_NAME):$(IMAGE_VERSION) \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm64 \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-amd64)
endif
@docker manifest push $(DOCKER_IMAGE_NAME):$(IMAGE_VERSION)

# [RC] Shortcut to build all supported multi arch k8s-events-forwarders and publish as RC
.PHONY : publish/multi-arch-k8s-events-forwarder-rc
publish/multi-arch-k8s-events-forwarder-rc : export IMAGE_VERSION=$(AGENT_VERSION)-rc
publish/multi-arch-k8s-events-forwarder-rc : export DOCKER_BUILD_TAG_PREFIX=$(IMAGE_VERSION)
publish/multi-arch-k8s-events-forwarder-rc : build/k8s-events-forwarder-arm64
ifneq ($(FIPS),)
publish/multi-arch-k8s-events-forwarder-rc : build/k8s-events-forwarder-arm
endif
publish/multi-arch-k8s-events-forwarder-rc : build/k8s-events-forwarder-amd64
publish/multi-arch-k8s-events-forwarder-rc : publish/multi-arch-k8s-events-forwarder-manifest

Expand All @@ -338,11 +357,18 @@ publish/multi-arch-forwarder-manifest :
@printf 'Target: publish/forwarder-manifest\n'
@printf 'Image: $(DOCKER_IMAGE_NAME):$(IMAGE_VERSION)'
@printf '\n================================================================\n'
ifneq ($(FIPS),)
@(docker manifest create \
$(DOCKER_IMAGE_NAME):$(IMAGE_VERSION) \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm64 \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-amd64)
else
@(docker manifest create \
$(DOCKER_IMAGE_NAME):$(IMAGE_VERSION) \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-arm64 \
$(DOCKER_IMAGE_NAME):$(DOCKER_BUILD_TAG_PREFIX)-amd64)
endif
@docker manifest push $(DOCKER_IMAGE_NAME):$(IMAGE_VERSION)


Expand All @@ -351,7 +377,9 @@ publish/multi-arch-forwarder-manifest :
publish/multi-arch-forwarder-rc : export IMAGE_VERSION=$(AGENT_VERSION)-rc
publish/multi-arch-forwarder-rc : export DOCKER_BUILD_TAG_PREFIX=$(IMAGE_VERSION)
publish/multi-arch-forwarder-rc : build/forwarder-arm64
ifneq ($(FIPS),)
publish/multi-arch-forwarder-rc : build/forwarder-arm
endif
publish/multi-arch-forwarder-rc : build/forwarder-amd64
publish/multi-arch-forwarder-rc : publish/multi-arch-forwarder-manifest

Expand Down

0 comments on commit 370b9e5

Please sign in to comment.