From 98c0044627d9cf991911a5ee16df7dc5fb3b099c Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 20 Dec 2023 10:18:57 -0600 Subject: [PATCH] Update deployment process --- .octopus/deployment_process.ocl | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.octopus/deployment_process.ocl b/.octopus/deployment_process.ocl index b9d9e24..16d0ad6 100644 --- a/.octopus/deployment_process.ocl +++ b/.octopus/deployment_process.ocl @@ -1,7 +1,8 @@ -step "terraform-plan" { - name = "Terraform Plan" +step "infra" { + name = "Infra" - action { + action "terraform-plan" { + name = "Terraform Plan" properties = { Octopus.Action.RunOnServer = "true" Octopus.Action.Template.Id = "ActionTemplates-1" @@ -14,16 +15,28 @@ step "terraform-plan" { image = "#{TF_CONTAINER}" } } -} -step "approve-plan" { - name = "Approve Plan" - - action { + action "approve-plan" { + name = "Approve Plan" properties = { Octopus.Action.RunOnServer = "false" Octopus.Action.Template.Id = "ActionTemplates-3" Octopus.Action.Template.Version = "0" } } + + action "terraform-apply" { + name = "Terraform Apply" + properties = { + Octopus.Action.RunOnServer = "true" + Octopus.Action.Template.Id = "ActionTemplates-2" + Octopus.Action.Template.Version = "1" + } + worker_pool_variable = "" + + container { + feed = "nexus" + image = "#{TF_CONTAINER}" + } + } } \ No newline at end of file