-
Notifications
You must be signed in to change notification settings - Fork 640
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
Question - Git flow commands for the "release packages" approach to Octopus Deploy? #583
Comments
I think I may have figured this out through some trial and error, but I would appreciate any comments if this is still a bit misguided. In my case I was creating a new release:
Then I pushed this into my test environment using Octopus, where it had a Semver of What I found was required to push these updates to the test environment was to tag this release branch using the current semver like so:
This provided GitVersion with the info it needed to roll into the next beta version - Is this the right way to approach this? |
Yep exactly, when you push the nuget package into the feed which octopus deploy is listening to you need to tag your git repo. This will cause the next build to increment. I meant to reply to this earlier today but had a busy day with work. |
And to directly answer your first question. release means taking one of the built CI packages, then making it available to the release pipeline. This means you have multiple candidate builds, but only one which gets released into the release pipeline |
Ok, thanks. I really appreciate the comments and helping me get this clear in my mind. |
If the docs can be more clear let me know, or submit a pull request :) Sent from my Windows Phone From: sstoriemailto:notifications@github.com Ok, thanks. I really appreciate the comments and helping me get this clear in my mind. — |
Ok, let me refine my steps into something more coherent and I'll submit a PR. |
PR created - #585 Thanks again for the help! Let me know if any changes to the PR are needed, or if I incorrectly captured the process. I repeated it a few times myself to ensure I understand it, but am still learning here. |
Thanks a heap @sstorie Changes look great |
I'm sorry if this is a real newbie question, but I'm just getting into GitFlow and trying to use GitVersion to manage builds with TeamCity and deployments through OctopusDeploy. I've got the TeamCity config working, and I'm producing files and NuGet packages with the appropriate versions. But I'm confused on how exactly to execute the process described here:
https://gitversion.readthedocs.org/en/latest/more-info/build-server-setup/octopus-deploy/
In this process, does the term "release" mean one of the
refs/head/release/*
branches? Or would you manually push the latestmaster
build into the Octopus pipeline and have it flow through? Once you push, is there something outside of gitflow you need to run to tag commits correctly in this approach?In my case I just have a staging and production environment, and the chance of having multiple pending releases is pretty small. I was thinking I could use a single release branch to push
-beta000X
packages to my test environment, and then have themaster
builds get pushed to the production environment as release packages (i.e., they're not -beta000X). I'm just not very clear on what the sequence of commands would be to tag things appropriately.The text was updated successfully, but these errors were encountered: