Skip to content

Commit

Permalink
Make deployment re-pull tags when deploying.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Jan 18, 2024
1 parent 629299e commit 6042b9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/job.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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}"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 6042b9d

Please sign in to comment.