From dca805c9c33d47a7629f66b871ecb1674c70a625 Mon Sep 17 00:00:00 2001 From: George Hudson Date: Tue, 31 Oct 2023 09:54:13 -0600 Subject: [PATCH] trying to get right format for conditional logic in job steps --- .circleci/deployment/jobs.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.circleci/deployment/jobs.yml b/.circleci/deployment/jobs.yml index d7de9ff14..f37bbe76b 100644 --- a/.circleci/deployment/jobs.yml +++ b/.circleci/deployment/jobs.yml @@ -6,12 +6,12 @@ type: string working_directory: ~/tdp-deploy steps: - when: - condition: << pipeline.parameters.run_dev_deployment >> - steps: - - deploy-cloud-dot-gov: - backend-appname: tdp-backend-<< parameters.target_env >> - frontend-appname: tdp-frontend-<< parameters.target_env >> + - when: + condition: << pipeline.parameters.run_dev_deployment >> + steps: + - deploy-cloud-dot-gov: + backend-appname: tdp-backend-<< parameters.target_env >> + frontend-appname: tdp-frontend-<< parameters.target_env >> deploy-staging: executor: docker-executor @@ -39,11 +39,11 @@ executor: terraform/default working_directory: ~/tdp-deploy steps: - when: - condition: << pipeline.parameters.run_dev_deployment >> - steps: - - deploy-infrastructure: - cf-app: << parameters.target_env >> + - when: + condition: << pipeline.parameters.run_dev_deployment >> + steps: + - deploy-infrastructure: + cf-app: << parameters.target_env >> deploy-infrastructure-staging: executor: terraform/default