Skip to content

Commit

Permalink
updating make file and actions.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaiasA1 committed Jul 27, 2023
1 parent 25b10d2 commit f01ae87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions cmd/podmon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand All @@ -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") .
Expand Down

0 comments on commit f01ae87

Please sign in to comment.