Skip to content

Commit

Permalink
trying to get right format for conditional logic in job steps
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hudson committed Oct 31, 2023
1 parent d8999ed commit dca805c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .circleci/deployment/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dca805c

Please sign in to comment.