Skip to content

Commit

Permalink
detecting optional -dev# in image version
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoile committed Feb 27, 2024
1 parent 4b859e5 commit 6b25ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/docker/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"runtime"
)

var dockerImageRE = regexp.MustCompile(`^mattermost\/(.+):v(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$`)
var dockerImageRE = regexp.MustCompile(`^mattermost\/(.+):v(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-dev\d*)*$`)

func getSiteURLForJob(siteURL string) string {
if os.Getenv("DEV_MODE") != "true" {
Expand Down

0 comments on commit 6b25ea4

Please sign in to comment.