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 tenanted release in Octopus Deploy octopusdeploy-deploy-release-tenanted
Deploy a tenanted release in Octopus Deploy
arguments
returns
deploy-release-tenanted:
type: octopusdeploy-deploy-release-tenanted
arguments:
OCTOPUS_API_KEY: '${{OCTOPUS_API_KEY}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces-1
PROJECT: Project Name
RELEASE_NUMBER: 1.0.0
ENVIRONMENT: Production
TENANTS:
- Tenant1
- Tenant2
VARIABLES:
- 'prompted-variable1:prompted-value1'
- 'prompted-variable2:prompted-value2'
USE_GUIDED_FAILURE: 'false'
deploy-release-tenanted:
type: octopusdeploy-deploy-release-tenanted
arguments:
OCTOPUS_API_KEY: '${{OCTOPUS_API_KEY}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces-1
PROJECT: Another Project Name
RELEASE_NUMBER: 2.0.0
ENVIRONMENT: Development
TENANT_TAGS:
- tagSetA/someTagB
- tagSetC/someTagD
login:
type: octopusdeploy-login
arguments:
ID_TOKEN: '${{ID_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SERVICE_ACCOUNT_ID: '${{OCTOPUS_SERVICE_ACCOUNT_ID}}'
deploy-release-tenanted:
type: octopusdeploy-deploy-release-tenanted
arguments:
OCTOPUS_ACCESS_TOKEN: '${{OCTOPUS_ACCESS_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces-1
PROJECT: Project Name
RELEASE_NUMBER: 1.0.0
ENVIRONMENT: Production
TENANTS:
- Tenant1
- Tenant2
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-tenanted:
type: octopusdeploy-deploy-release-tenanted
arguments:
OCTOPUS_ACCESS_TOKEN: '${{OCTOPUS_ACCESS_TOKEN}}'
OCTOPUS_URL: '${{OCTOPUS_URL}}'
OCTOPUS_SPACE: Spaces-1
PROJECT: Another Project Name
RELEASE_NUMBER: 2.0.0
ENVIRONMENT: Development
TENANT_TAGS:
- tagSetA/someTagB
- tagSetC/someTagD