Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-tag alpha images in Git that we can generate full releases from #103

Merged
merged 1 commit into from Jul 30, 2019

Conversation

rvmiller89
Copy link
Contributor

@rvmiller89 rvmiller89 commented Jul 30, 2019

Automatically tag pushes to master with the same version we use to push the docker image. From these tags we can create releases in Github, and also perform diffs between tags/master.

@rvmiller89
Copy link
Contributor Author

This is difficult to test without actually merging and seeing how it works. If it messes up, we can delete the tag.


echo "Tagging git with v$new_alpha..."
git tag -a "v$new_alpha" -m "Bump version to v$new_alpha"
git push --tags origin master
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this create too many tags in github? Do we have any concern there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will create a tag for every PR that gets merged. I think that's fine though -- we can always re-evaluate if we hit some limit.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I'm okay with this, it helps keep track of which alpha tag corresponds to which commits as well

@rvmiller89 rvmiller89 merged commit 19271de into master Jul 30, 2019
@rvmiller89 rvmiller89 deleted the rmiller-auto-ci-git-tag branch July 30, 2019 17:59
psaia pushed a commit to psaia/sumologic-kubernetes-collection that referenced this pull request May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants