- 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.
21 lines
755 B
YAML
21 lines
755 B
YAML
---
|
|
# Hops n Grains as a rootless Podman Quadlet on emily, behind the shared Caddy.
|
|
# Run: ansible-playbook playbook.yml -e image_tag=<commit>
|
|
# Use --skip-tags caddy until DNS for hopsngrains.com points at emily.
|
|
- name: Deploy Hops n Grains as a rootless Podman Quadlet
|
|
hosts: emily
|
|
gather_facts: true
|
|
vars_files:
|
|
- vars/default.yml
|
|
|
|
pre_tasks:
|
|
# Quadlet fails unit generation when hops.network is missing, so write the
|
|
# network and the Caddy drop-in before the app unit starts.
|
|
- name: Register the Hops n Grains network with Caddy
|
|
ansible.builtin.include_tasks: "{{ playbook_dir }}/roles/register/tasks/main.yaml"
|
|
|
|
roles:
|
|
- hops
|
|
# The Caddyfile task is tagged caddy. Skip it until DNS points here.
|
|
- caddy
|