-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.workflow
27 lines (23 loc) · 730 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
workflow "Build container" {
on = "release"
resolves = ["GitHub Action for Docker-1"]
}
action "GitHub Action for Docker" {
uses = "actions/docker/cli@76ff57a6c3d817840574a98950b0c7bc4e8a13a8"
args = "build -t bmordue/nb ."
}
action "Docker Tag" {
uses = "actions/docker/tag@76ff57a6c3d817840574a98950b0c7bc4e8a13a8"
needs = ["GitHub Action for Docker"]
args = "--no-latest"
}
action "Docker Registry" {
uses = "actions/docker/login@76ff57a6c3d817840574a98950b0c7bc4e8a13a8"
needs = ["Docker Tag"]
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
}
action "GitHub Action for Docker-1" {
uses = "actions/docker/cli@76ff57a6c3d817840574a98950b0c7bc4e8a13a8"
needs = ["Docker Registry"]
args = "push"
}