fix: auto-config ssh urls and push to them
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-12-27 18:06:56 +01:00
parent b98397144a
commit eb1b6be4c5
6 changed files with 85 additions and 19 deletions

View File

@ -213,7 +213,7 @@ func createReleaseFromTag(recipe recipe.Recipe, tagString, mainAppVersion string
logrus.Fatal(err)
}
if err := pushRelease(recipe.Dir()); err != nil {
if err := pushRelease(recipe); err != nil {
logrus.Fatal(err)
}
@ -308,7 +308,7 @@ func tagRelease(tagString string, repo *git.Repository) error {
return nil
}
func pushRelease(recipeDir string) error {
func pushRelease(recipe recipe.Recipe) error {
if internal.Dry {
logrus.Info("dry run: no changes pushed")
return nil
@ -325,7 +325,7 @@ func pushRelease(recipeDir string) error {
}
if internal.Push {
if err := gitPkg.Push(recipeDir, true); err != nil {
if err := recipe.Push(internal.Dry); err != nil {
return err
}
}
@ -403,7 +403,7 @@ func createReleaseFromPreviousTag(tagString, mainAppVersion string, recipe recip
logrus.Fatal(err)
}
if err := pushRelease(recipe.Dir()); err != nil {
if err := pushRelease(recipe); err != nil {
logrus.Fatal(err)
}