forked from stingaa/action-builder
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmulti-action.workflow
More file actions
42 lines (36 loc) · 783 Bytes
/
multi-action.workflow
File metadata and controls
42 lines (36 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
workflow "Build and Publish" {
on = "push"
resolves = "Publish"
}
action "Lint" {
uses = "actions/action-builder/shell@master"
runs = "make"
args = "lint"
}
action "Test" {
uses = "actions/action-builder/shell@master"
runs = "make"
args = "test"
}
action "Build" {
needs = ["Lint", "Test"]
uses = "actions/action-builder/docker@master"
runs = "make"
args = "build"
}
action "Publish Filter" {
needs = ["Build"]
uses = "actions/bin/filter@master"
args = "branch master"
}
action "Docker Login" {
needs = ["Publish Filter"]
uses = "actions/docker/login@master"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}
action "Publish" {
needs = ["Docker Login"]
uses = "actions/action-builder/docker@master"
runs = "make"
args = "publish"
}