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:
parent
fc84cfdace
commit
a42ed3883b
3 changed files with 8 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -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) .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue