Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Create a release in Octopus Deploy octopusdeploy-create-release
Create a release in Octopus Deploy
arguments
returns
create-release:
type: octopusdeploy-create-release
arguments:
OCTOPUS_API_KEY: '${{OCTOPUS_API_KEY}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces 1
PROJECT: Project Name
create-release:
type: octopusdeploy-create-release
arguments:
OCTOPUS_API_KEY: '${{OCTOPUS_API_KEY}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces 1
PROJECT: Project Name
RELEASE_NUMBER: 1.0.0
CHANNEL: Channel Name
GIT_REF: refs/heads/main
GIT_COMMIT: Commit ID
PACKAGE_VERSION: 1.0.0
PACKAGES:
- 'Package:1.0.0'
RELEASE_NOTES: This is a release note
RELEASE_NOTES_FILE: /release-notes.txt
IGNORE_EXISTING: false
login:
type: octopusdeploy-login
arguments:
ID_TOKEN: '${{ID_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SERVICE_ACCOUNT_ID: '${{OCTOPUS_SERVICE_ACCOUNT_ID}}'
create-release:
type: octopusdeploy-create-release
arguments:
OCTOPUS_ACCESS_TOKEN: '${{OCTOPUS_ACCESS_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces 1
PROJECT: Project Name
login:
type: octopusdeploy-login
arguments:
ID_TOKEN: '${{ID_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SERVICE_ACCOUNT_ID: '${{OCTOPUS_SERVICE_ACCOUNT_ID}}'
create-release:
type: octopusdeploy-create-release
arguments:
OCTOPUS_ACCESS_TOKEN: '${{OCTOPUS_ACCESS_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces 1
PROJECT: Project Name
RELEASE_NUMBER: 1.0.0
CHANNEL: Channel Name
GIT_REF: refs/heads/main
GIT_COMMIT: Commit ID
PACKAGE_VERSION: 1.0.0
PACKAGES:
- 'Package:1.0.0'
RELEASE_NOTES: This is a release note
RELEASE_NOTES_FILE: /release-notes.txt
IGNORE_EXISTING: false