Ability to call a script rather than code it inline
Hi,
I have been looking at getting out deployment process under version control for our main project.
I have successfully integrated Octopus with Azure Devops Repo and created a test project under version control etc.
From what I can see, the entire deployment process is written to a /.octopus/deployment_process.ocl file, including any inline PowerShell scripts.
For example:
step "Swap Staging and Production Slots" {
action {
action_type = "Octopus.AzurePowerShell"
properties = {
Octopus.Action.Azure.AccountId = "#{AzureAccount}"
Octopus.Action.Script.ScriptBody = <<-EOT
….
….
….
Lots of powershell coding
….
….
….
EOT
Octopus.Action.Script.ScriptSource = "Inline"
Octopus.Action.Script.Syntax = "PowerShell"
OctopusUseBundledTooling = "False"
}
worker_pool = "Azure Worker Pool"
}
}
What I was hoping to do was modularise it even further so that instead of all the code being inside the .ocl file, have that step above in a separate script inside the repository.
So instead of having an inline script, we call a script stored separately in the repository? Is this functionality possibly currently or is this a feature that is planned for the future?
