func (dply *Deployment) ShouldDeploy(branch, tag string) bool {
	if dply.Branch != branch {
		return false
	}
	if dply.OnlyTags && tag == "" {
		return false
	}
	if dply.tagsRegex != "" {
		r := regexp.MustCompile(dply.tagsRegex)
		if !r.MatchString(tag) {
			return false
		}
	}

	return true
}
// ShouldDeploy returns whether or not the deployments criteria are met
ShouldDeploy returns whether or not the deployments criteria are met
// ShouldDeploy returns whether or not the deployments criteria are met
func (dply *Deployment) ShouldDeploy(branch, tag string) bool {
	if dply.Branch != branch {
		return false
	}
	if dply.OnlyTags && tag == "" {
		return false
	}
	if dply.tagsRegex != "" {
		r := regexp.MustCompile(dply.tagsRegex)
		if !r.MatchString(tag) {
			return false
		}
	}
	return true
}
func ( dply * Deployment ) ShouldDeploy ( branch , tag string ) bool { if dply . Branch != branch { return false } if dply . OnlyTags && tag == " " { return false } if dply . tagsRegex != " " { r := regexp . MustCompile ( dply . tagsRegex ) if ! r . MatchString ( tag ) { return false } } return true }
ShouldDeploy returns whether or not the deployments criteria are met
ShouldDeploy returns whether or not the deployments criteria are met