From fb4840d95d20eae7cd98b49469bc336f57ec8d0e Mon Sep 17 00:00:00 2001 From: Raul Sevilla Date: Fri, 1 Mar 2024 13:17:59 +0100 Subject: [PATCH] Fix container and manifest targets in makefile Signed-off-by: Raul Sevilla --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 081816f6..cdc0d4a7 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ CGO = 0 RHEL_VERSION = ubi9 CONTAINER ?= podman CONTAINER_BUILD ?= podman build --force-rm -CONTAINER_NS ?= quay.io/cloud-bulldozer/netperf +CONTAINER_NS ?= quay.io/cloud-bulldozer SOURCES := $(shell find . -type f -name "*.go") # k8s-netperf version @@ -38,17 +38,17 @@ container-build: build @echo "Building the container image" $(CONTAINER_BUILD) -f containers/Containerfile \ --build-arg RHEL_VERSION=$(RHEL_VERSION) \ - -t $(CONTAINER_NS)/$(BIN) ./containers + -t $(CONTAINER_NS)/$(BIN):latest ./containers -gha-build: build +gha-build: @echo "Building the container image for GHA" $(CONTAINER_BUILD) -f containers/Containerfile \ - --build-arg RHEL_VERSION=$(RHEL_VERSION) --platform=linux/amd64,linux/arm64,linux/ppc64le,linux/s390x \ - -t $(CONTAINER_NS) ./containers --manifest=$(CONTAINER_NS)-manifest:latest + --build-arg RHEL_VERSION=$(RHEL_VERSION) --platform=linux/amd64,linux/arm64 \ + ./containers --manifest=$(CONTAINER_NS)/${BIN}:latest -gha-push: +gha-push: gha-build @echo "Pushing Container Images & manifest" - $(CONTAINER) manifest push $(CONTAINER_NS)-manifest:latest $(CONTAINER_NS) + $(CONTAINER) manifest push $(CONTAINER_NS)/${BIN}:latest clean: rm -rf bin/$(ARCH)