Skip to content

Instantly share code, notes, and snippets.

@mbenford
Created May 27, 2013 19:09
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mbenford/5658613 to your computer and use it in GitHub Desktop.
Save mbenford/5658613 to your computer and use it in GitHub Desktop.
Bootstrap script to register a Tentacle with an Octopus server and deploy a release to its environment/role. Requires a Tentacle installer and Octo.exe in the same directory of the script.
start /wait msiexec /i Octopus.Tentacle.<version>.msi /quiet INSTALLLOCATION=C:\Octopus
cd C:\Octopus\Agent
tentacle configure --appdir="C:\Applications" --port=10933 --trust=<server-thumbprint>
tentacle new-certificate
tentacle install
tentacle register-with --server=<server-url> --environment=<environment> --role=<role> --apikey=<some-user-apikey>
octo deploy-release --project=<project-name> --deployto=<environment-to-deploy> --version=<version-to-deploy> --server=<server-url> --apikey=<some-user-apikey>
@PaulStovell
Copy link

To deploy-release you can even pass --specificmachines YourMachineName to tell Octopus to only deploy the packages to your specific machine (steps that are for roles that the machine is not in will be skipped).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment