From f01ae87d0deeb404098424c0f5c68086332923fd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Jul 2023 10:59:46 -0400 Subject: [PATCH] updating make file and actions.yaml --- .github/workflows/actions.yml | 9 ++++++++- cmd/podmon/Makefile | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index fd99428..477c3aa 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -92,7 +92,14 @@ jobs: - name: Mod tidy run: go mod tidy - name: Build podmon Docker Image - run: cd cmd/podmon ; chmod +x ../../scripts/buildubimicro.sh ; buildah unshare ../../scripts/buildubimicro.sh "registry.access.redhat.com/ubi8-micro:8.8-3"; make clean build ; podman build -t docker.io/podmon . --build-arg BASEIMAGE="localhost/resiliency-ubimicro" ; podman save docker.io/library/podmon -o /tmp/podmon.tar ; docker load -i /tmp/podmon.tar + run: | + cd cmd/podmon + chmod +x ../../scripts/buildubimicro.sh + buildah unshare ../../scripts/buildubimicro.sh "registry.access.redhat.com/ubi9-micro:9.2-9" + make clean build + podman build -t docker.io/podmon . --build-arg BASEIMAGE="localhost/resiliency-ubimicro" + podman save docker.io/library/podmon -o /tmp/podmon.tar + docker load -i /tmp/podmon.tar - name: Image scanner uses: Azure/container-scan@v0 with: diff --git a/cmd/podmon/Makefile b/cmd/podmon/Makefile index b62e457..9159ef7 100644 --- a/cmd/podmon/Makefile +++ b/cmd/podmon/Makefile @@ -16,8 +16,8 @@ MAJOR=0 MINOR=0 PATCH=54 VERSION?="v$(MAJOR).$(MINOR).$(PATCH)" -REGISTRY?="${REGISTRY_HOST}:${REGISTRY_PORT}/podmontest" -BASEIMAGE?="localhost/resiliency-micro:latest" +REGISTRY?="${REGISTRY_HOST}:${REGISTRY_PORT}/podmon" +BASEIMAGE?="resiliency-micro:latest" clean: go clean ./... @@ -26,7 +26,7 @@ build: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-w' ./... build-base-image: - sh ../../scripts/buildubimicro.sh "registry.access.redhat.com/ubi8-micro:8.8-3" + sh ../../scripts/buildubimicro.sh "registry.access.redhat.com/ubi9-micro:9.2-9" podman: podman build --no-cache -t "$(REGISTRY):$(VERSION)" --build-arg BASEIMAGE=$(BASEIMAGE) --label commit=$(shell git log --max-count 1 --format="%H") .