I have a circleci pipeline that process a net core project and generate a nuget package. I followed the steps in this great tutorial https://renatogolia.com/2022/12/23/publish-nuget-package-with-circleci/ and I was able to build and push the package.
I'm having trouble with gitversion, so far I'm able to only increment the patch version. I'm using X.Y.Z for major|minor|patch.
Here's my Gitversion.yml
mode: Mainline
branches:
main:
is-mainline: true
develop:
tag: ""
increment: Minor
prevent-increment-of-merged-branch-version: false
regex: ^dev(elop)?(ment)?$
is-release-branch: false
is-mainline: false
bugfix:
tag: bugfix
increment: Patch
regex: ^bugfix(es)?
prevent-increment-of-merged-branch-version: false
source-branches:
- develop
- main
ignore:
sha: []
merge-message-formats: {}
The idea is the following: Allow devs to create branches from develop (I need to update the regex to allow that), then create a PR and merge that changes to main. Once it's merged the circle ci pipeline triggers and generate the nuget package. The problem is that it is only incrementing the PATCH number, not the Minor.
I'm using the semver variable as shown in the circleci tutorial.
VERSION=$(dotnet gitversion | jq -r ".SemVer")
dotnet pack --configuration Release -p:Version=$VERSION -o ./outputs/packages/
This also applies to those branches from bugfix. Those are incremented by patch number. Any ideas?
To check CircleCI's Docker container memory usage, you can use the following steps:
Please note that depending on your CircleCI configuration and setup, this information may vary slightly. If you are unable to find or interpret the memory usage details, it is recommended to contact a CircleCI support agent at [email protected] for further assistance tailored specifically to your situation.
References: https://circleci.com/docs/deploy-to-azure-container-registry/