update infra for new setup
All checks were successful
Build, Test & Publish / Build (push) Successful in 29s
Build, Test & Publish / Build and Publish Container Image (push) Successful in 2m31s
Build, Test & Publish / Deploy to Infrastructure (push) Successful in 38s

This commit is contained in:
2025-11-12 13:57:44 +11:00
parent 45f2c61c17
commit 10e2eaa16b
5 changed files with 28 additions and 95 deletions

View File

@@ -1,6 +1,6 @@
variable "version" {
type = string
default = "latest"
type = string
default = "latest"
}
job "code-snippets" {
@@ -20,7 +20,7 @@ job "code-snippets" {
driver = "docker"
config {
image = "liamsgit.dev/LiamPietralla/code-snippets:${var.version}"
image = "liamsgit.dev/liampietralla/code-snippets:${var.version}"
force_pull = true
ports = ["http"]
}
@@ -30,8 +30,9 @@ job "code-snippets" {
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.code-snippets.rule=PathPrefix(`/`)",
"traefik.http.routers.code-snippets.entrypoints=p5003"
"traefik.http.routers.codesnippets.rule=Host(`code.liampietralla.com`)",
"traefik.http.routers.codesnippets.entrypoints=websecure",
"traefik.http.routers.codesnippets.tls.certresolver=letsencrypt"
]
check {