test(packer): make image builder simplier.
This commit is contained in:
parent
5b9c1a8fea
commit
aae36aa4e0
15 changed files with 65 additions and 103 deletions
|
|
@ -12,14 +12,13 @@
|
|||
flavor ?=
|
||||
disk ?= 10G
|
||||
|
||||
VERSION := 0.$(shell git rev-list --count HEAD)
|
||||
BASE = archlinux debian ubuntu opensuse fedora
|
||||
BASE = archlinux debian ubuntu22 ubuntu24 opensuse fedora
|
||||
|
||||
.PHONY: ${BASE} lint
|
||||
|
||||
$(BASE):
|
||||
@make --directory=../ package dist=${@}
|
||||
@packer build -force -var version=${VERSION} \
|
||||
@packer build -force \
|
||||
-var disk_size=${disk} -var flavor="${flavor}" \
|
||||
-only=qemu.${@} packer/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue