-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmain.workflow
42 lines (36 loc) · 852 Bytes
/
main.workflow
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 = ["Test lcbot", "Publish lc0"]
}
action "Build lc0" {
uses = "actions/docker/cli@master"
args = "build --target lc0 -t lc0 ."
}
action "Tag lc0" {
needs = ["Build lc0"]
uses = "actions/docker/tag@master"
args = "lc0 vochicong/lc0-docker"
}
action "Test lcbot" {
needs = ["Build lc0"]
uses = "actions/docker/cli@master"
args = "build --target lcbot ."
}
# action "Publish Filter" {
# needs = ["Build lc0"]
# uses = "actions/bin/filter@master"
# args = "branch master"
# }
action "Login" {
needs = [
# "Publish Filter",
"Build lc0",
]
uses = "actions/docker/login@master"
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}
action "Publish lc0" {
needs = ["Login", "Tag lc0"]
uses = "actions/docker/cli@master"
args = "push vochicong/lc0-docker"
}