push-build-information-action
This is a GitHub Action to push build information to Octopus Deploy. It requires the Octopus CLI; please ensure to include install-octopus-cli-action in your workflow (example below) before using this GitHub Action.
Examples
Incorporate the following actions in your workflow to push build information to Octopus Deploy using an API key, a target instance (i.e. server
), and a package:
env:
OCTOPUS_CLI_SERVER: ${{ secrets.OCTOPUS_URL }}
OCTOPUS_CLI_API_KEY: ${{ secrets.OCTOPUS_API_KEY }}
steps:
- uses: actions/checkout@v2
- name: Install Octopus CLI ๐
uses: OctopusDeploy/install-octopus-cli-action@<version>
with:
version: latest
- name: Push build information to Octopus Deploy ๐
uses: OctopusDeploy/push-build-information-action@<version>
with:
space: '<space>'
packages: |
<packageId1>
version: '<versionofpackages>'
๐ฅ Inputs
The following inputs are required:
Name | Description | Default |
---|---|---|
packages |
A multi-line list of packages to push build information to Octopus Deploy. | |
space |
The name or ID of a space within which this command will be executed. | |
version |
The version of the package(s). |
The following inputs are optional:
Name | Description | Default |
---|---|---|
branch |
The branch name, if omitted the GitHub ref will be used. | |
overwrite_mode |
Determines the action to perform with build information if it already exists in the repository. Valid input values are FailIfExists , OverwriteExisting , and IgnoreIfExists . |
FailIfExists |
debug |
Logs the build information data. | false |