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

Usage of commit-and-tag-version within a CI/CD pipeline #204

Open
olaurendeau opened this issue Nov 4, 2024 · 2 comments
Open

Usage of commit-and-tag-version within a CI/CD pipeline #204

olaurendeau opened this issue Nov 4, 2024 · 2 comments
Labels
question Further information is requested

Comments

@olaurendeau
Copy link

olaurendeau commented Nov 4, 2024

Hi,
I'm planning to use commit-and-tag-version within my CI/CD pipeline to automate it when a release is triggered.
Do you have recommendations for setting it up ? I've scan the docs but didn't found any reference to CI/CD.
Specially regarding how to make a good usage of Github & Gitlab "release" feature.
Thanks !

@olaurendeau olaurendeau added the question Further information is requested label Nov 4, 2024
@TimothyJones
Copy link
Member

Good point! We really should add something on this in the documentation.

It depends a bit on your workflow, but you can see an example of an automated workflow here. That script is triggered by a repository dispatch - and has a slight disadvantage in that there's a race between the commit and push it does and anyone else merging - which might not work for everyone.

I usually make the release after pushing the tag - but it can make more sense to do it the other way around - where the changelog is merged, and then the tag is generated.

@olaurendeau
Copy link
Author

Thanks for your answer.
I eventually included tag-and-commit in my release workflow on a manual step.
Here it is : https://gitlab.com/incubateur-territoires/incubateur/survey-builder/-/blob/main/.gitlab-ci.yml?ref_type=heads#L93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants