Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (38 sloc) 1.02 KB
workflow "build, test, benchmark, docker build/push & shaking finger" {
on = "pull_request"
resolves = [
"test",
"benchmark",
"post gif on fail",
"docker.build",
"docker.push",
]
}
action "test" {
uses = "lotharschulz/hello-github-actions/action@master"
args = ["make test"]
}
action "benchmark" {
uses = "lotharschulz/hello-github-actions/action@master"
args = ["make benchmark"]
}
action "post gif on fail" {
uses = "jessfraz/shaking-finger-action@master"
secrets = ["GITHUB_TOKEN"]
}
action "docker.build" {
uses = "actions/docker/cli@master"
args = "build -t lotharschulz/hello-github-actions:$GITHUB_SHA ."
needs = ["test"]
}
action "docker.login" {
uses = "actions/docker/login@master"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
needs = ["docker.build"]
}
action "docker.push" {
uses = "actions/docker/cli@master"
needs = ["docker.login"]
secrets = ["GITHUB_TOKEN", "DOCKER_PASSWORD", "DOCKER_USERNAME"]
args = "push lotharschulz/hello-github-actions:$GITHUB_SHA"
}
You can’t perform that action at this time.