mirror of
https://github.com/thegeeklab/wp-docker-buildx.git
synced 2024-11-13 22:50:41 +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{
|
cli.StringFlag{
|
||||||
Name: "default.branch",
|
Name: "default.branch",
|
||||||
Usage: "defualt repository branch",
|
Usage: "repository default branch",
|
||||||
EnvVar: "DRONE_REPO_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.
|
// the commit ref.
|
||||||
func DefaultTags(ref, commitBranch, defaultBranch string) []string {
|
func DefaultTags(ref, commitBranch, defaultBranch string) []string {
|
||||||
|
|
||||||
if defaultBranch != "" &&
|
if defaultBranch != "" && commitBranch != defaultBranch && !strings.HasPrefix(ref, "refs/tags/") {
|
||||||
commitBranch != defaultBranch &&
|
|
||||||
!strings.HasPrefix(ref, "refs/tags/") {
|
|
||||||
return []string{}
|
return []string{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user