Skip to content

Commit

Permalink
Stacking terraform after deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-jameson committed Dec 19, 2024
1 parent 2eb6de0 commit 6256949
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
15 changes: 5 additions & 10 deletions .circleci/deployment/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@
parameters:
target_env:
type: string
executor: docker-executor
executor: terraform/default
working_directory: ~/tdp-deploy
steps:
- init-deploy
- deploy-cloud-dot-gov:
backend-appname: tdp-backend-<< parameters.target_env >>
frontend-appname: tdp-frontend-<< parameters.target_env >>
- deploy-infrastructure:
cf-app: << parameters.target_env >>

deploy-staging:
executor: docker-executor
Expand All @@ -64,15 +66,8 @@
cf-space: tanf-staging
cf-username: CF_USERNAME_STAGING

deploy-infrastructure-dev:
parameters:
target_env:
type: string
executor: terraform/default
working_directory: ~/tdp-deploy
steps:
- deploy-infrastructure:
cf-app: << parameters.target_env >>



deploy-infrastructure-staging:
executor: terraform/default
Expand Down
8 changes: 0 additions & 8 deletions .circleci/deployment/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@

jobs:
# Dev environments
- deploy-infrastructure-dev:
target_env: << pipeline.parameters.target_env >>
filters:
branches:
ignore:
- develop
- main
- master
- deploy-dev:
target_env: << pipeline.parameters.target_env >>
filters:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ npm-debug.log
/output/
/cache/
boilerplate.zip
.circleci/generated_config.yml

# Spritesmith
spritesmith-generated/
Expand Down Expand Up @@ -117,3 +118,4 @@ cypress.env.json
# DB seeds
tdrs-backend/*.pg
tdrs-backend/django.log

0 comments on commit 6256949

Please sign in to comment.