Initial commit with support for GitHub actions
This commit is contained in:
21
example/.github/main.workflow
vendored
Normal file
21
example/.github/main.workflow
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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"
|
||||
args = "echo 'deploy'"
|
||||
needs = ["test"]
|
||||
}
|
1
example/action1/Dockerfile
Normal file
1
example/action1/Dockerfile
Normal file
@@ -0,0 +1 @@
|
||||
FROM ubuntu:18.04
|
1
example/action2/Dockerfile
Normal file
1
example/action2/Dockerfile
Normal file
@@ -0,0 +1 @@
|
||||
FROM alpine:3.8
|
Reference in New Issue
Block a user