Add build-container make target

To avoid regressing on the Dockerfile, run the new make target in the CI
as well.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2019-09-11 11:45:53 +02:00
parent fc84cfdace
commit a42ed3883b
3 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,12 @@
SRC := ./BuildSourceImage.sh
CTR_IMAGE := localhost/containers/buildsourceimage
all: validate
.PHONY: validate
validate: $(SRC)
shellcheck -a $(SRC)
.PHONY: build-container
build-container: Dockerfile
podman build -f Dockerfile -t $(CTR_IMAGE) .