2019-01-13 04:45:25 +00:00
|
|
|
workflow "build-and-deploy" {
|
|
|
|
on = "push"
|
|
|
|
resolves = ["deploy"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "build" {
|
|
|
|
uses = "./action1"
|
|
|
|
args = "echo 'build'"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "test" {
|
|
|
|
uses = "docker://ubuntu:18.04"
|
|
|
|
args = "echo 'test'"
|
|
|
|
needs = ["build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
action "deploy" {
|
|
|
|
uses = "./action2"
|
2019-01-16 21:11:32 +00:00
|
|
|
runs = ["/bin/sh", "-c", "cat $GITHUB_EVENT_PATH"]
|
2019-01-13 04:45:25 +00:00
|
|
|
needs = ["test"]
|
|
|
|
}
|