Skip to content

Commit

Permalink
Execute caddy reload when Caddyfile changed (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Oct 11, 2024
1 parent e6f9acd commit 0ab2dc2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions jobs/http.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,19 @@ job "http" {

artifact {
source = "https://github.com/femiwiki/nomad/raw/main/caddy/Caddyfile"
destination = "local/Caddyfile"
destination = "local/Caddyfile.tpl"
mode = "file"

options { checksum = "md5:ee0300e384afa6aca74f09a44323ee6e" }
}
template {
source = "local/Caddyfile.tpl"
destination = "local/Caddyfile"
change_mode = "script"
change_script {
command = "caddy"
args = ["reload"]
}
}

artifact {
source = "https://github.com/femiwiki/nomad/raw/main/res/robots.txt"
Expand Down

0 comments on commit 0ab2dc2

Please sign in to comment.