forked from coop-cloud/abra
feat: link direct to tag
This commit is contained in:
parent
24882e95b4
commit
8785f66391
|
@ -197,7 +197,7 @@ func createReleaseFromTag(recipe recipe.Recipe, tagString, mainAppVersion string
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := pushRelease(recipe); err != nil {
|
if err := pushRelease(recipe, tagString); err != nil {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -272,7 +272,7 @@ func tagRelease(tagString string, repo *git.Repository) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func pushRelease(recipe recipe.Recipe) error {
|
func pushRelease(recipe recipe.Recipe, tagString string) error {
|
||||||
if internal.Dry {
|
if internal.Dry {
|
||||||
logrus.Info("dry run: no changes published")
|
logrus.Info("dry run: no changes published")
|
||||||
return nil
|
return nil
|
||||||
|
@ -294,7 +294,7 @@ func pushRelease(recipe recipe.Recipe) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
url := fmt.Sprintf("%s/%s/tags", config.REPOS_BASE_URL, recipe.Name)
|
url := fmt.Sprintf("%s/%s/tags/%s", config.REPOS_BASE_URL, recipe.Name, tagString)
|
||||||
logrus.Infof("new release published: %s", url)
|
logrus.Infof("new release published: %s", url)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue