25 lines
642 B
Makefile
25 lines
642 B
Makefile
|
.PHONY: force
|
||
|
|
||
|
packer-manifest.json: nginx.json \
|
||
|
tmp/nginx.conf \
|
||
|
tmp/do.ini \
|
||
|
files/certbot-renew.service \
|
||
|
files/certbot-renew.timer \
|
||
|
files/nginx-restart.service \
|
||
|
files/nginx-restart.timer \
|
||
|
scripts/dependencies.sh \
|
||
|
scripts/nginx.sh
|
||
|
packer build nginx.json
|
||
|
|
||
|
tmp/nginx.conf: tmp force
|
||
|
cd terraform && terraform apply -auto-approve
|
||
|
|
||
|
tmp/do.ini: templates/do.ini.template tmp
|
||
|
sigil -p -f templates/do.ini.template > tmp/do.ini
|
||
|
chmod 600 tmp/do.ini
|
||
|
|
||
|
tmp:
|
||
|
mkdir tmp
|
||
|
|
||
|
force:
|