2019-01-12 22:45:25 -06:00
|
|
|
workflow "build-and-deploy" {
|
|
|
|
on = "push"
|
|
|
|
resolves = ["deploy"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "build" {
|
|
|
|
uses = "./action1"
|
|
|
|
args = "echo 'build'"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "test" {
|
|
|
|
uses = "docker://ubuntu:18.04"
|
2019-01-31 02:18:52 -06:00
|
|
|
args = "env"
|
2019-01-12 22:45:25 -06:00
|
|
|
needs = ["build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "deploy" {
|
|
|
|
uses = "./action2"
|
2019-01-16 15:11:32 -06:00
|
|
|
runs = ["/bin/sh", "-c", "cat $GITHUB_EVENT_PATH"]
|
2019-01-12 22:45:25 -06:00
|
|
|
needs = ["test"]
|
|
|
|
}
|