mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-10 03:30:40 +00:00
update
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
197b737685
commit
3c1cfa628f
@ -200,7 +200,7 @@ func main() {
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "default.branch",
|
||||
Usage: "defualt repository branch",
|
||||
Usage: "repository default branch",
|
||||
EnvVar: "DRONE_REPO_BRANCH",
|
||||
},
|
||||
}
|
||||
|
4
tags.go
4
tags.go
@ -28,9 +28,7 @@ func DefaultTagSuffix(ref, suffix, commitBranch, defaultBranch string) []string
|
||||
// the commit ref.
|
||||
func DefaultTags(ref, commitBranch, defaultBranch string) []string {
|
||||
|
||||
if defaultBranch != "" &&
|
||||
commitBranch != defaultBranch &&
|
||||
!strings.HasPrefix(ref, "refs/tags/") {
|
||||
if defaultBranch != "" && commitBranch != defaultBranch && !strings.HasPrefix(ref, "refs/tags/") {
|
||||
return []string{}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user