-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
69 lines (68 loc) · 1.99 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
IMAGE_DATE := $(shell date +'%Y-%mt%d-%H-%M')
PREFIX := pg-ci
pre-commit:
yamllint -c .yamllint-cirrus .cirrus.yml
# FreeBSD
packer validate \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=freebsd-13" \
packer/freebsd.pkr.hcl
# Debian Bullseye
packer validate \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=bullseye" \
packer/linux_debian.pkr.hcl
# Debian Bookworm
packer validate \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=bookworm" \
packer/linux_debian.pkr.hcl
# Windows VM
packer validate \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=windows-ci-vs" \
packer/windows.pkr.hcl
# NetBSD Vanilla
packer validate \
-only "vanilla.*" \
-var-file=packer/netbsd.pkrvars.hcl \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=netbsd-vanilla" \
-var "prefix=${PREFIX}" \
-var "bucket=somebucket" \
packer/netbsd_openbsd.pkr.hcl
# NetBSD Postgres
packer validate \
-only "postgres.*" \
-var-file=packer/netbsd.pkrvars.hcl \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=netbsd-postgres" \
-var "prefix=${PREFIX}" \
-var "bucket=somebucket" \
packer/netbsd_openbsd.pkr.hcl
# OpenBSD Vanilla
packer validate \
-only "vanilla.*" \
-var-file=packer/openbsd.pkrvars.hcl \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=openbsd-vanilla" \
-var "prefix=${PREFIX}" \
-var "bucket=somebucket" \
packer/netbsd_openbsd.pkr.hcl
# OpenBSD Postgres
packer validate \
-only "postgres.*" \
-var-file=packer/openbsd.pkrvars.hcl \
-var gcp_project=pg-ci-images-dev \
-var "image_date=$(IMAGE_DATE)" \
-var "image_name=openbsd-postgres" \
-var "prefix=${PREFIX}" \
-var "bucket=somebucket" \
packer/netbsd_openbsd.pkr.hcl