Deploying software with Octopus often involves deploying packages. This section explains how to package your applications for deployment with Octopus.
Before you can deploy a package you need to:
- Give your package a package ID.
- Choose and apply a versioning scheme.
- Create the package in a supported format.
- Host the package in a package repository.
Package IDs must conform to the following specifications:
- Package IDs must be unique within your Octopus Deploy instance.
- Package IDs consist of one or more segments separated by one of the following separator characters:
- Segments contain only alphanumeric characters.
For instance, the package ID in this sample package is
Avoid using numbers in your package ID as it could result in the version number being incorrectly parsed.
The version number needs to be applied to your package after the package ID and before the format. For instance. The version number in our sample package is 1.0.0.
Learn more about versioning schemes.
Package dependencies and structure
When you package your applications, you need to include all the binaries that are required to run the application, and structure the package the way you want it to appear after it has been extracted.
It is important that your packages have the correct file extension because Octopus uses the file extension to determine the correct extraction algorithm to use with your packages.
|Package type||File Extensions||Notes|
|NuGet||.nupkg||Compatible with any NuGet repository (including the Built-In repository). Currently only NuGet packages will have extra metadata like release notes and description extracted from the package metadata. Learn about NuGet on the official NuGet website.|
|Zip||.zip||Standard zip file as created through most common zip programs. Compatible with the built-In repository only.|
|JAR WAR EAR RAR||.jar, .war, .ear, .rar||Compatible with the built-In repository and Maven Feeds from Octopus 4.1. RAR files are Java Resource Adaptor Archives, not the .rar compressed archive format.|
|Tar||.tar||Compatible with the Built-In repository only.|
|Tar + Gzip||.tgz, .tar.gz, .tar.Z||Compatible with the built-In repository only.|
|Tar + Bzip2||.tar.bz, .tar.bz2, .tbz*||Compatible with the built-In repository only.|
|Docker Image||Docker Registries. Learn about Docker and Octopus Deploy.|
Need support? We're here to help.