Skip to content

Commit

Permalink
Add schedule for build
Browse files Browse the repository at this point in the history
  • Loading branch information
floodcode committed Jul 8, 2024
1 parent c3df2c6 commit 273a923
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/live.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: LIVE - Tag and Deploy

on:
schedule:
- cron: "5 * * * *" # Every hour at minute 5
push:
branches:
- master
Expand Down
58 changes: 58 additions & 0 deletions operations/deploy-live.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
job "depictor-live" {
datacenters = ["ator-fin"]
type = "service"
namespace = "ator-network"

group "depictor" {
count = 1

constraint {
attribute = "${node.unique.id}"
value = "c8e55509-a756-0aa7-563b-9665aa4915ab"
}

network {
port "nginx-http" {
static = 8009
to = 80
}
}

task "depictor-nginx-task" {
driver = "docker"
force_pull = true

config {
image = "svforte/depictor:latest"
ports = ["nginx-http"]
}

resources {
cpu = 128
memory = 128
}

service {
name = "depictor-nginx"
port = "nginx-http"
tags = [
"traefik.enable=true",
"traefik.http.routers.deb-repo.entrypoints=https",
"traefik.http.routers.deb-repo.rule=Host(`netowork-health.dmz.ator.dev`)",
"traefik.http.routers.deb-repo.tls=true",
"traefik.http.routers.deb-repo.tls.certresolver=atorresolver",
]
check {
name = "nginx http server alive"
type = "tcp"
interval = "10s"
timeout = "10s"
check_restart {
limit = 10
grace = "30s"
}
}
}
}
}
}

0 comments on commit 273a923

Please sign in to comment.