-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: Add support for running Git runbooks #441
Conversation
…eoffl-git-runbooks-part-2
Fix existing tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me but the tests have failed. I will take another look once they are green
Thanks @stevencl840 yep this PR needs to wait for OctopusDeploy/go-octopusdeploy#278 to be merged and a new version of the go library to be available before it will compile and pass the tests |
Add package and git resources to tests
This PR is part of a series that adds support to the CLI for interacting with runbooks stored in Git for version controlled projects
Background
Git runbooks operate differently to runbooks stored in the Octopus database in that there are no draft/published snapshots, these are replaced with running a runbook using a Git reference such as
main
. This means that in order to run a runbook that uses packages or Git resources these need to be supplied as part of the run creation.Changes
This PR adds support for running a Git runbook. It detects whether the project selected is storing runbooks in Git and if so will support new parameters:
--git-ref
: The Git ref to run for (required).--package-version
: The default version to use for any packages.--packages
: Specific versions of packages.--git-resources
: Git resources to select.The parameters for package versions and Git resources operate in the same way as creating releases and use the same code from #440.
This PR requires OctopusDeploy/go-octopusdeploy#278 to be merged and a new version of the go library to be available.