test: simplify image build.

This commit is contained in:
Alexandre Pujol 2023-09-10 12:24:47 +01:00
parent e71fc00d8e
commit 2a354452a9
Failed to generate hash of commit

View file

@ -13,11 +13,11 @@ flavor ?=
disk ?= 10G
VERSION := 0.$(shell git rev-list --count HEAD)-1
PACKERS = $(notdir $(patsubst %.pkr.hcl,%,$(wildcard packer/*.pkr.hcl)))
BASE = archlinux debian ubuntu opensuse
.PHONY: ${PACKERS} lint
.PHONY: ${BASE} lint
$(PACKERS):
$(BASE):
make --directory=../ package dist=${@}
packer build -force -var version=${VERSION} \
-var disk_size=${disk} -var flavor="${flavor}" \