jdormit-infra/prod/wallabag/packer/Makefile

37 lines
1.4 KiB
Makefile
Raw Normal View History

packer-manifest.json: wallabag.json \
scripts/dependencies.sh \
scripts/nginx.sh \
scripts/redis.sh \
scripts/wallabag.sh \
files/wallabag-nginx.conf \
files/entries.json \
2021-01-07 15:48:14 +00:00
files/wallabag-params.yml \
files/clients.sql \
certbot/live/wallabag.jeremydormitzer.com/fullchain.pem \
certbot/live/wallabag.jeremydormitzer.com/privkey.pem
packer build wallabag.json
files/wallabag-params.yml: templates/wallabag-params.yml.template
sigil -p -f templates/wallabag-params.yml.template > files/wallabag-params.yml
2021-01-07 15:48:14 +00:00
files/clients.sql: templates/clients.sql.template
sigil -p -f templates/clients.sql.template > files/clients.sql
certbot/live/wallabag.jeremydormitzer.com/fullchain.pem certbot/live/wallabag.jeremydormitzer.com/privkey.pem &: tmp/do.ini
certbot certonly -n \
--agree-tos \
--email ${CERTBOT_EMAIL} \
--dns-digitalocean \
--dns-digitalocean-credentials tmp/do.ini \
--config-dir ./certbot \
--work-dir ./certbot \
--logs-dir ./certbot \
-d wallabag.jeremydormitzer.com
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