From 6042b9d83c649f47a7e2c8e2272db4e259456f30 Mon Sep 17 00:00:00 2001 From: Trey Pendragon Date: Wed, 17 Jan 2024 16:31:51 -0800 Subject: [PATCH] Make deployment re-pull tags when deploying. --- docker/job.hcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/job.hcl b/docker/job.hcl index 9d78fe6e..d0aa1e8b 100644 --- a/docker/job.hcl +++ b/docker/job.hcl @@ -2,6 +2,10 @@ job "pulfalight" { region = "global" datacenters = ["dc1"] type = "service" + # Forces re-pulling the image on job deploy. + meta { + uuid = uuidv4() + } group "rdbms" { count = 1 network { @@ -100,6 +104,7 @@ job "pulfalight" { image = "ghcr.io/pulibrary/pulfalight:pr-1367" command = "bash" args = ["-c", "bundle exec rake db:migrate"] + force_pull = true auth { username = "${GITHUB_CONTAINER_REGISTRY_USERNAME}" password = "${GITHUB_CONTAINER_REGISTRY_PASSWORD}" @@ -143,6 +148,7 @@ job "pulfalight" { config { image = "ghcr.io/pulibrary/pulfalight:pr-1367" ports = ["http"] + force_pull = true auth { username = "${GITHUB_CONTAINER_REGISTRY_USERNAME}" password = "${GITHUB_CONTAINER_REGISTRY_PASSWORD}"