yet another guard try

This commit is contained in:
Jonas Forsberg 2023-04-13 16:46:12 +02:00
parent 3e8c266ae0
commit 5be3153522

View File

@ -11,12 +11,12 @@ SHELL := /bin/bash
default: build default: build
guard: guard:
@ [ ! -z "$(git status --porcelain=v1 2>/dev/null)" ] && echo "git not clean!" && exit 1 @ if [ -z "$(git status --porcelain=v1 2>/dev/null)" ]; then echo "git not clean!"; exit 1; fi
build: build:
podman build --build-arg VERSION=$(VERSION) --tag ${REPO}/${IMAGENAME}:$(VERSION) . podman build --build-arg VERSION=$(VERSION) --tag ${REPO}/${IMAGENAME}:$(VERSION) .
clean: clean: guard
podman image rm ${REPO}/${IMAGENAME}:$(VERSION) podman image rm ${REPO}/${IMAGENAME}:$(VERSION)
release: guard build release: guard build