install-octopus-cli-action
This is a GitHub Action to install the Octopus CLI on runners and self-hosted environments. Once installed, the Octopus CLI may be used to issue commands to Octopus Deploy. Subsequent actions may use the Octopus CLI, which is cached and available via PATH
.
What is the Octopus CLI?
The Octopus CLI is a command line tool that builds on top of the Octopus REST API. It enables you to package applications for deployment and manage your environments, deployments, channels, projects, and workers in Octopus Deploy.
Features
- Download, install, and cache Octopus CLI to be used in workflows
- Supports SemVer-based version numbers with wildcards (i.e.
8.*
) but not ranges
Examples
To install the latest version (i.e. *
or latest
) of the Octopus CLI:
- name: Install Octopus CLI ๐
uses: OctopusDeploy/install-octopus-cli-action@v1
with:
version: '*'
To install a specific version of the Octopus CLI:
- name: Install Octopus CLI ๐
uses: OctopusDeploy/install-octopus-cli-action@v1
with:
version: 9.0.0
Here's an example of invoking the list-deployments
command after installing the Octopus CLI:
- name: Install Octopus CLI ๐
uses: OctopusDeploy/install-octopus-cli-action@v1
with:
version: 9.0.0
- name: list-octopusdeploy-deployments
run: >
octo list-deployments --server=${{ env.serverURL }}
--apiKey=${{ secrets.apiKey }}
๐ฅ Inputs
The following input is optional:
Name | Description | Default |
---|---|---|
version |
The version number of the Octopus CLI to download and install (i.e. 7.4.3190 ). |
* (latest) |
๐ค Contributions
Contributions are welcome!