- Makefile: PLATFORMS, tags :<commit> and :main, build-check with --pull. - deploy.sh: push, guards, git pull --ff-only, optional --prune, image_tag. - Replace .containerignore with .dockerignore. - Add the opt-in image prune to the hops role. - Tag the Caddyfile task so --skip-tags caddy works before DNS cutover. - Trim comments and rewrite build and deploy text in plain prose.
16 lines
512 B
YAML
16 lines
512 B
YAML
---
|
|
# Append the site blocks to the shared Caddyfile. The file is bind-mounted into
|
|
# Caddy, so the reload handler is enough. blockinfile is idempotent.
|
|
|
|
- name: "Add the {{ host }} site blocks to the Caddyfile"
|
|
tags: [caddy]
|
|
ansible.builtin.blockinfile:
|
|
path: "{{ caddyfile_path }}"
|
|
marker: "# {mark} Ansible managed Caddy snippet for {{ host }}"
|
|
block: "{{ snippet_block }}"
|
|
create: true
|
|
owner: "{{ podman_user }}"
|
|
group: "{{ podman_user }}"
|
|
mode: '0644'
|
|
notify: Reload Caddy
|