Skip to content

Commit

Permalink
Fix container and manifest targets in makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 committed Mar 1, 2024
1 parent f29a9f9 commit fb4840d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit fb4840d

Please sign in to comment.