fabrica/.packer/targets/alpine.mk

28 lines
933 B
Makefile

# Images Alpine
ALPINE_DEPS=images/alpine/3.10/alpine-virt/alpine-virt-3.10.img images/alpine/3.12/alpine-virt/alpine-virt-3.12.img
build: alpine
deploy: deploy-alpine
alpine: $(ALPINE_DEPS)
deploy-alpine: deploy-alpine-virt
deploy-alpine-virt: deploy-alpine-virt-3.10 deploy-alpine-virt-3.12
images/alpine/3.10/alpine-virt/alpine-virt-3.10.img:
rm -rf images/alpine/3.10/alpine-virt
script/build recipes/alpine/3.10/virt.json
images/alpine/3.12/alpine-virt/alpine-virt-3.12.img:
rm -rf images/alpine/3.12/alpine-virt
script/build recipes/alpine/3.12/virt.json
deploy-alpine-virt-3.10:
IMAGE_NAME=alpine-virt-3.10 \
IMAGE_HTTP_PATH=alpine/3.10/alpine-virt/alpine-virt-3.10.img \
script/build recipes/deploy.json
deploy-alpine-virt-3.12: images/alpine/3.12/alpine-virt/alpine-virt-3.12.img
IMAGE_NAME=alpine-virt-3.12 \
IMAGE_HTTP_PATH=alpine/3.12/alpine-virt/alpine-virt-3.12.img \
script/build recipes/deploy.json