Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
0

Push a package in Octopus Deploy octopusdeploy-push-package

Push a package in Octopus Deploy

arguments

  • OCTOPUS_ACCESS_TOKEN - Access token for octopus deploy (required when OCTOPUS_API_KEY is not provided)
  • OCTOPUS_API_KEY - API key for octopus deploy (required when OCTOPUS_ACCESS_TOKEN is not provided)
  • OCTOPUS_SPACE - Workspace for octopus deploy (required)
  • OCTOPUS_URL - URL of the octopus deploy server (required)
  • OVERWRITE_MODE - Action when a package already exists. Valid values are 'fail', 'overwrite', 'ignore'. Default is 'fail' (optional)
  • PACKAGES - Package to upload, may be specified multiple times. Any arguments without flags will be treated as packages (required)
    push-package:
  type: octopusdeploy-push-package
  arguments:
    OCTOPUS_API_KEY: '${{OCTOPUS_API_KEY}}'
    OCTOPUS_URL: '${{OCTOPUS_URL}}'
    OCTOPUS_SPACE: Spaces 1
    PACKAGES:
      - SomePackage.1.0.0.zip
      - SomeOtherPackage.1.0.0.zip
    OVERWRITE_MODE: fail

  
    login:
  type: octopusdeploy-login
  arguments:
    ID_TOKEN: '${{ID_TOKEN}}'
    OCTOPUS_URL: '${{OCTOPUS_URL}}'
    OCTOPUS_SERVICE_ACCOUNT_ID: '${{OCTOPUS_SERVICE_ACCOUNT_ID}}'
push-package:
  type: octopusdeploy-push-package
  arguments:
    OCTOPUS_ACCESS_TOKEN: '${{OCTOPUS_ACCESS_TOKEN}}'
    OCTOPUS_URL: '${{OCTOPUS_URL}}'
    OCTOPUS_SPACE: Spaces 1
    PACKAGES:
      - SomePackage.1.0.0.zip
      - SomeOtherPackage.1.0.0.zip
    OVERWRITE_MODE: fail

  
github.com
OctopusDeploy
Nov 4, 2024