summaryrefslogtreecommitdiff
path: root/alis-packer.sh
blob: 012d43bae65435d614cf14919e6f33cf64122688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -e

CONFIG_FILE="alis-packer-efi-ext4-luks-lvm-grub.json"
while getopts "c:" arg; do
  case $arg in
    c)
      CONFIG_FILE=$OPTARG
      ;;
  esac
done


packer validate "packer/$CONFIG_FILE"
packer build -force "packer/$CONFIG_FILE"