mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-05-12 03:16:36 +00:00
68 lines
1.6 KiB
HCL
68 lines
1.6 KiB
HCL
workflow "Deploy to Heroku" {
|
|
on = "push"
|
|
resolves = ["release registry", "release hooks", "release reaper"]
|
|
}
|
|
|
|
action "heroku login" {
|
|
uses = "actions/heroku@master"
|
|
args = "container:login"
|
|
secrets = ["HEROKU_API_KEY"]
|
|
}
|
|
|
|
action "build registry" {
|
|
uses = "actions/docker/cli@master"
|
|
needs = "heroku login"
|
|
args = "build -t registry.heroku.com/replreg/web registry"
|
|
}
|
|
|
|
action "push registry" {
|
|
uses = "actions/docker/cli@master"
|
|
needs = "build registry"
|
|
args = "push registry.heroku.com/replreg/web"
|
|
}
|
|
|
|
action "release registry" {
|
|
uses = "actions/heroku@master"
|
|
needs = "push registry"
|
|
args = "container:release -a replreg web"
|
|
secrets = ["HEROKU_API_KEY"]
|
|
}
|
|
|
|
action "build hooks" {
|
|
uses = "actions/docker/cli@master"
|
|
needs = "heroku login"
|
|
args = "build -f hooks/Dockerfile.hooks -t registry.heroku.com/replreg-hooks/web hooks"
|
|
}
|
|
|
|
action "push hooks" {
|
|
uses = "actions/docker/cli@master"
|
|
needs = "build hooks"
|
|
args = "push registry.heroku.com/replreg-hooks/web"
|
|
}
|
|
|
|
action "release hooks" {
|
|
uses = "actions/heroku@master"
|
|
needs = "push hooks"
|
|
args = "container:release -a replreg-hooks web"
|
|
secrets = ["HEROKU_API_KEY"]
|
|
}
|
|
|
|
action "build reaper" {
|
|
uses = "actions/docker/cli@master"
|
|
needs = "heroku login"
|
|
args = "build -f hooks/Dockerfile.reap -t registry.heroku.com/replreg-hooks/reap hooks"
|
|
}
|
|
|
|
action "push reaper" {
|
|
uses = "actions/docker/cli@master"
|
|
needs = "build reaper"
|
|
args = "push registry.heroku.com/replreg-hooks/reap"
|
|
}
|
|
|
|
action "release reaper" {
|
|
uses = "actions/heroku@master"
|
|
needs = "push reaper"
|
|
args = "container:release -a replreg-hooks webreap"
|
|
secrets = ["HEROKU_API_KEY"]
|
|
}
|