Skip to content
This repository was archived by the owner on Mar 10, 2021. It is now read-only.

Commit 2b167e0

Browse files
committed
Add docker registry login
1 parent 110e333 commit 2b167e0

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/main.workflow

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ workflow "Deploy" {
22
on = "push"
33
resolves = [
44
"goreleaser",
5-
"is-tag",
65
"Test on Travis CI",
6+
"Docker Registry",
77
]
88
}
99

@@ -12,16 +12,24 @@ action "is-tag" {
1212
args = "tag"
1313
}
1414

15+
16+
17+
action "Test on Travis CI" {
18+
uses = "travis-ci/actions@master"
19+
secrets = ["TRAVIS_TOKEN"]
20+
}
21+
22+
action "Docker Registry" {
23+
uses = "actions/docker/login@8cdf801b322af5f369e00d85e9cf3a7122f49108"
24+
needs = ["is-tag"]
25+
secrets = ["DOCKER_USERNAME", "DOCKER_PASSWORD"]
26+
}
27+
1528
action "goreleaser" {
1629
uses = "docker://goreleaser/goreleaser"
1730
secrets = [
1831
"GORELEASER_GITHUB_TOKEN",
1932
]
2033
args = "release"
21-
needs = ["is-tag","Test on Travis CI"]
22-
}
23-
24-
action "Test on Travis CI" {
25-
uses = "travis-ci/actions@master"
26-
secrets = ["TRAVIS_TOKEN"]
34+
needs = ["is-tag", "Test on Travis CI", "Docker Registry"]
2735
}

0 commit comments

Comments
 (0)