Sure here is what I got from using “Export” on the template:
{
“Id”: “4b66f8c6-a264-465f-b145-13012969c239”,
“Name”: “Microservice”,
“Description”: “Template for microservices”,
“ActionType”: “Octopus.WindowsService”,
“Version”: 1,
“CommunityActionTemplateId”: null,
“Packages”: [
{
“PackageId”: “#{servicename}”,
“FeedId”: “feeds-builtin”,
“AcquisitionLocation”: “Server”,
“Properties”: {
“SelectionMode”: “immediate”
},
“Id”: “fc8f09db-96dd-4366-a9d0-627899362d24”,
“Name”: “”
}
],
“Properties”: {
“Octopus.Action.EnabledFeatures”: “Octopus.Features.WindowsService,Octopus.Features.CustomDirectory,Octopus.Features.JsonConfigurationVariables,Octopus.Features.ConfigurationVariables,Octopus.Features.SubstituteInFiles”,
“Octopus.Action.WindowsService.StartMode”: “delayed-auto”,
“Octopus.Action.WindowsService.ServiceAccount”: “LocalSystem”,
“Octopus.Action.WindowsService.ExecutablePath”: “#{servicename}.exe”,
“Octopus.Action.Package.CustomInstallationDirectory”: “D:\microservices\#{servicename}”,
“Octopus.Action.WindowsService.ServiceName”: “#{servicename}”,
“Octopus.Action.WindowsService.DisplayName”: “#{servicename}”,
“Octopus.Action.WindowsService.Description”: “SA microservice”,
“Octopus.Action.Package.PackageId”: “#{servicename}”,
“Octopus.Action.Package.FeedId”: “feeds-builtin”,
“Octopus.Action.Package.DownloadOnTentacle”: “False”,
“Octopus.Action.WindowsService.DesiredStatus”: “Started”,
“Octopus.Action.Package.CustomInstallationDirectoryShouldBePurgedBeforeDeployment”: “True”,
“Octopus.Action.Package.JsonConfigurationVariablesEnabled”: “True”,
“Octopus.Action.SubstituteInFiles.Enabled”: “True”,
“Octopus.Action.Package.AutomaticallyUpdateAppSettingsAndConnectionStrings”: “True”,
“Octopus.Action.Package.JsonConfigurationVariablesTargets”: “appsettings.json”
},
“Parameters”: [
{
“Id”: “30f9a66d-c8f9-438f-9bb7-bf1d4e3b5cad”,
“Name”: “servicename”,
“Label”: “Microservice name”,
“HelpText”: “The name, must be the same as the .exe file, ex. Kansli.Billmate”,
“DefaultValue”: “”,
“DisplaySettings”: {
“Octopus.ControlType”: “SingleLineText”
}
}
],
“$Meta”: {
“ExportedAt”: “2020-09-30T14:58:07.608Z”,
“OctopusVersion”: “2020.3.6”,
“Type”: “ActionTemplate”
},
“LastModifiedBy”: “Your GitHub Username”,
“Category”: “other”
}