Created
May 27, 2013 19:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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).