Skip to content

Commit

Permalink
Merge pull request cri-o#8187 from saschagrunert/tag-creation
Browse files Browse the repository at this point in the history
Create tag on reconciler
  • Loading branch information
openshift-merge-bot[bot] committed May 16, 2024
2 parents d7c7d2e + 0a76ebe commit c9310ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/tag-reconciler/tag-reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ func run() error {
}

func pushTagToRemote(repo *git.Repo, tag, remote string) error {
logrus.Infof("Adding tag to repository: %s", tag)
if err := repo.Tag(tag, tag); err != nil {
return fmt.Errorf("unable to tag repository: %w", err)
}

logrus.Infof("Pushing tag to origin: %s", tag)
if err := command.NewWithWorkDir(repo.Dir(), "git", "push", remote, "tag", tag).RunSilentSuccess(); err != nil {
return fmt.Errorf("unable to run git push: %w", err)
Expand Down

0 comments on commit c9310ad

Please sign in to comment.