From d88b5726be8a80bafa50a84a76a5ba86c0ce2edf Mon Sep 17 00:00:00 2001 From: wizzdom Date: Thu, 11 Apr 2024 17:51:14 +0100 Subject: [PATCH] refactor amikon job: auto redeploy every 6 hours (#40) --- jobs/nginx/ams-amikon-update.hcl | 36 +++++++++++++++++++++ jobs/nginx/ams-amikon.hcl | 55 ++++++++++++++++++++++++++++++++ jobs/nginx/anime-manga-soc.hcl | 46 -------------------------- 3 files changed, 91 insertions(+), 46 deletions(-) create mode 100644 jobs/nginx/ams-amikon-update.hcl create mode 100644 jobs/nginx/ams-amikon.hcl delete mode 100644 jobs/nginx/anime-manga-soc.hcl diff --git a/jobs/nginx/ams-amikon-update.hcl b/jobs/nginx/ams-amikon-update.hcl new file mode 100644 index 0000000..a9df07d --- /dev/null +++ b/jobs/nginx/ams-amikon-update.hcl @@ -0,0 +1,36 @@ +job "ams-amikon-update" { + datacenters = ["aperture"] + type = "batch" + + periodic { + crons = ["0 */6 * * * *"] + prohibit_overlap = true + } + + group "ams-amikon-update" { + + task "ams-amikon-update" { + driver = "raw_exec" + + config { + command = "/bin/bash" + args = ["local/script.sh"] + } + + template { + data = <