bug: add retry to restarting caddy (#97)
Some checks are pending
Deploy (on merge) / Discover hosts (push) Waiting to run
Deploy (on merge) / Deploy → (push) Blocked by required conditions
Terraform / Plan (push) Waiting to run
Terraform / Apply (push) Blocked by required conditions

* bug: add retry to restarting caddy

* skip terraform pipeline when no terraform changes has been done
This commit is contained in:
Rasmus Wejlgaard 2026-05-05 20:42:52 +01:00 committed by GitHub
parent abb283c1d7
commit 7d22ad1ce1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -2,6 +2,9 @@ name: Validate Terraform
on: on:
pull_request: pull_request:
paths:
- "terraform/**"
- ".github/workflows/validate-terraform.yml"
permissions: permissions:
contents: read contents: read

View file

@ -3,3 +3,7 @@
ansible.builtin.service: ansible.builtin.service:
name: caddy name: caddy
state: reloaded state: reloaded
register: caddy_reload_result
until: caddy_reload_result is succeeded
retries: 3
delay: 5