Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Deploy a release in Octopus Deploy octopusdeploy-deploy-release
Deploy a release in Octopus Deploy
arguments
returns
deploy-release:
type: octopusdeploy-deploy-release
arguments:
OCTOPUS_API_KEY: '${{OCTOPUS_API_KEY}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces-1
PROJECT: Project Name
RELEASE_NUMBER: 1.0.0
ENVIRONMENTS:
- Development
- Production
VARIABLES:
- 'prompted-variable1:prompted-value1'
- 'prompted-variable2:prompted-value2'
USE_GUIDED_FAILURE: 'false'
login:
type: octopusdeploy-login
arguments:
ID_TOKEN: '${{ID_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SERVICE_ACCOUNT_ID: '${{OCTOPUS_SERVICE_ACCOUNT_ID}}'
deploy-release:
type: octopusdeploy-deploy-release
arguments:
OCTOPUS_ACCESS_TOKEN: '${{OCTOPUS_ACCESS_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces-1
PROJECT: Project Name
RELEASE_NUMBER: 1.0.0
ENVIRONMENTS:
- Development
- Production
VARIABLES:
- 'prompted-variable1:prompted-value1'
- 'prompted-variable2:prompted-value2'
USE_GUIDED_FAILURE: 'false'