version changes
All checks were successful
Build, Test & Publish / Build (push) Successful in 30s
Build, Test & Publish / Build and Publish Container Image (push) Successful in 41s
Build, Test & Publish / Deploy to Infrastructure (push) Successful in 35s

This commit is contained in:
2026-02-04 13:12:11 +11:00
parent 256c55e585
commit 1a3b0eb43e
2 changed files with 11 additions and 21 deletions

View File

@@ -1,12 +1,17 @@
variable "version" {
type = string
default = "latest"
variable "deployment_version" {
type = string
description = "The deployment version from CI/CD"
default = "unknown"
}
job "code-snippets" {
datacenters = ["dc1"]
type = "service"
meta {
version = var.deployment_version
}
constraint {
operator = "="
attribute = "${meta.machine_role}"
@@ -26,7 +31,7 @@ job "code-snippets" {
driver = "docker"
config {
image = "liamsgit.dev/liampietralla/code-snippets:${var.version}"
image = "liamsgit.dev/liampietralla/code-snippets:latest"
force_pull = true
ports = ["http"]
}