-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmain.workflow
More file actions
34 lines (29 loc) · 843 Bytes
/
Copy pathmain.workflow
File metadata and controls
34 lines (29 loc) · 843 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
workflow "Build and Deploy" {
resolves = [
"Push Image",
"GitHub Action for Docker",
]
on = "release"
}
action "GitHub Action for Docker" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
args = "build -t chinodesuuuu/coder:latest ."
}
action "Docker Registry" {
uses = "actions/docker/login@8cdf801b322af5f369e00d85e9cf3a7122f49108"
needs = ["GitHub Action for Docker"]
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}
action "Push Image" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
needs = ["Docker Registry"]
args = "docker push -t chinodesuuu/coder:latest"
}
workflow "Lint PR" {
on = "pull_request"
resolves = ["Build Image"]
}
action "Build Image" {
uses = "actions/docker/cli@8cdf801b322af5f369e00d85e9cf3a7122f49108"
args = "build -t pr ."
}