yet another guard try
This commit is contained in:
parent
3e8c266ae0
commit
5be3153522
4
Makefile
4
Makefile
@ -11,12 +11,12 @@ SHELL := /bin/bash
|
||||
default: build
|
||||
|
||||
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:
|
||||
podman build --build-arg VERSION=$(VERSION) --tag ${REPO}/${IMAGENAME}:$(VERSION) .
|
||||
|
||||
clean:
|
||||
clean: guard
|
||||
podman image rm ${REPO}/${IMAGENAME}:$(VERSION)
|
||||
|
||||
release: guard build
|
||||
|
Loading…
Reference in New Issue
Block a user