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 b4608cd
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 @@ -66,6 +66,10 @@ job "pulfalight" {
}
}
group "web" {
# Forces re-pulling the image on job deploy.
meta {
uuid = uuidv4()
}
count = 2
network {
port "http" { to = 8000 }
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 b4608cd

Please sign in to comment.