mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
bug: add retry to restarting caddy (#97)
* bug: add retry to restarting caddy * skip terraform pipeline when no terraform changes has been done
This commit is contained in:
parent
abb283c1d7
commit
7d22ad1ce1
2 changed files with 7 additions and 0 deletions
3
.github/workflows/validate-terraform.yml
vendored
3
.github/workflows/validate-terraform.yml
vendored
|
|
@ -2,6 +2,9 @@ name: Validate Terraform
|
|||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "terraform/**"
|
||||
- ".github/workflows/validate-terraform.yml"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
|
|||
|
|
@ -3,3 +3,7 @@
|
|||
ansible.builtin.service:
|
||||
name: caddy
|
||||
state: reloaded
|
||||
register: caddy_reload_result
|
||||
until: caddy_reload_result is succeeded
|
||||
retries: 3
|
||||
delay: 5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue