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

Create Octopus Deploy package octopusdeploy-create-package

Creates a zip package in the format expected by Octopus Deploy

arguments

  • BASE_PATH - Root folder containing the contents to zip. (optional)
  • ID - The ID of the package. (required)
  • INCLUDE - Add a file pattern to include, relative to the base path e.g. /bin/*.dll; defaults to '**'. (optional)
  • OUT_FOLDER - Folder into which the zip file will be written. (optional)
  • OVERWRITE - Allow an existing package file of the same ID/version to be overwritten. (optional)
  • VERSION - The version of the package, must be a valid SemVer. (required)

returns

  • PATH - The zip file path that was created
    create-package:
  type: octopusdeploy-create-package
  arguments:
    ID: SomePackage
    VERSION: 1.0.0

  
    create-package:
  type: octopusdeploy-create-package
  arguments:
    ID: SomePackage
    VERSION: 1.0.0
    BASE_PATH: /codefresh/volume
    OUT_FOLDER: /codefresh/volume
    INCLUDE:
      - '*.html'
      - '*.css'

  
github.com
OctopusDeploy
Sep 24, 2024