1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

feat: skip_push on docker to match draft releases

This commit is contained in:
Carlos Alexandro Becker
2018-03-24 18:41:24 -03:00
committed by Carlos Alexandro Becker
parent 79a48eae7b
commit b5818a7225
3 changed files with 33 additions and 0 deletions

View File

@ -92,6 +92,33 @@ func TestRunPipe(t *testing.T) {
},
assertError: shouldNotErr,
},
"valid_skip_push": {
publish: true,
docker: config.Docker{
Image: registry + "goreleaser/test_run_pipe",
Goos: "linux",
Goarch: "amd64",
Dockerfile: "testdata/Dockerfile",
Binary: "mybin",
SkipPush: true,
TagTemplates: []string{
"{{.Tag}}-{{.Env.FOO}}",
"v{{.Major}}",
"v{{.Major}}.{{.Minor}}",
"latest",
},
Files: []string{
"testdata/extra_file.txt",
},
},
expect: []string{
registry + "goreleaser/test_run_pipe:v1.0.0-123",
registry + "goreleaser/test_run_pipe:v1",
registry + "goreleaser/test_run_pipe:v1.0",
registry + "goreleaser/test_run_pipe:latest",
},
assertError: shouldNotErr,
},
"valid_no_latest": {
publish: true,
docker: config.Docker{