mirror of
https://github.com/acaloiaro/camply-searches
synced 2026-07-21 10:12:22 +00:00
45 lines
796 B
HCL
45 lines
796 B
HCL
variable "version" {
|
|
type = string
|
|
}
|
|
|
|
variable "runner_name" {
|
|
description = "The name of the github runner ($GITHUB_RUNNER)"
|
|
type = string
|
|
}
|
|
|
|
job "alice_lake_2025" {
|
|
datacenters = ["dc1"]
|
|
namespace = "default"
|
|
|
|
group "task" {
|
|
count = 1
|
|
task "camply" {
|
|
driver = "docker"
|
|
artifact {
|
|
source = "http://${var.runner_name}:8080/camply-${var.version}.tar"
|
|
options {
|
|
archive = false
|
|
}
|
|
}
|
|
|
|
config {
|
|
load = "camply-${var.version}.tar"
|
|
image = "camply:${var.version}"
|
|
}
|
|
|
|
template {
|
|
data = <<EOF
|
|
NTFY_TOPIC=adriano-camply
|
|
EOF
|
|
destination = "local/env"
|
|
env = true
|
|
}
|
|
|
|
resources {
|
|
cpu = 128
|
|
memory = 128
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|