Skip to content
New issue

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

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

Already on GitHub? # to your account

Add commands for Runbook operations, specifically 'create-runbook' #110

Open
dgard1981 opened this issue Oct 11, 2022 · 1 comment · May be fixed by #343
Open

Add commands for Runbook operations, specifically 'create-runbook' #110

dgard1981 opened this issue Oct 11, 2022 · 1 comment · May be fixed by #343
Labels
enhancement New feature or request

Comments

@dgard1981
Copy link

Good morning,

Can I please request that you add additional commands for Runbook operations to the Octopus CLI.

Presently the only Runbook operation in is run-runbook. What I'd like to see are these two operations -

  • create-runbook: Ideally this would work in almost exactly the same way as create-release, allowing the specification of defaultPackageVersion and package to set package versions to use with steps. I'd also like to be able to optionally publish the new Runbook after creation.
  • publish-runbook: This operation would allow publishing of an existing Runbook.

Assuming I have one or more steps in both my Deployment Process and a Runbook that references a script, currently when using AWS CodeBuild I can create a package, upload it to S3 and then create a release on Octopus, but I have to manually create the Runbook and then publish it. What I'd like to be able to do is something like this.

version: 0.2
env:
  shell: bash
phases:
  ...
  build:
    commands:
      - dotnet-octo pack --id="${PACKAGE_ID}" --basePath="${PACKAGE_BASE_PATH}" --version=${VERSION} --outFolder=Artifacts --format=zip
      - aws s3 cp Artifacts/${PACKAGE_ID}.*.zip ${BUCKET_FEED_URL}
      - dotnet-octo create-release --project ${PROJECT_ID} --space ${SPACE_ID} --defaultPackageVersion ${VERSION} --version ${VERSION} --ignoreExisting
      - dotnet-octo create-runbook --project ${PROJECT_ID} --space ${SPACE_ID} --defaultPackageVersion ${VERSION} --name ${VERSION} --ignoreExisting --publish

I'd be happy to provide further details if that would help.

Thanks.
David

@benPearce1 benPearce1 added the enhancement New feature or request label Jan 6, 2023
@toby-freemarket
Copy link

This is related to
#165

@benPearce1 benPearce1 linked a pull request Mar 15, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants