Skip to content

Commit 7eac5cb

Browse files
authored
Merge pull request #12 from codecrafters-ff/tf-ec2-ssh-elastic-ip-setup
Update all env_dir and S3 key paths to use development
2 parents 8bcbb13 + 0d26df1 commit 7eac5cb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/terraform-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
env: [develop, staging, main]
28+
env: [development, staging, production]
2929
stack: [backend, frontend]
3030
include:
31-
- env: develop
31+
- env: development
3232
branch: develop
3333
- env: staging
3434
branch: staging
35-
- env: main
35+
- env: production
3636
branch: main
3737

3838
steps:
@@ -112,7 +112,7 @@ jobs:
112112
path: ${{ steps.paths.outputs.env_dir }}/plan.txt
113113

114114
- name: Terraform Apply
115-
if: matrix.env == 'develop' && github.ref == 'refs/heads/develop'
115+
if: matrix.env == 'development' && github.ref == 'refs/heads/develop'
116116
run: terraform -chdir=${{ steps.paths.outputs.env_dir }} apply -auto-approve
117117
env:
118118
TF_VAR_allowed_ssh_cidrs: ${{ secrets.ALLOWED_SSH_CIDRS }}

0 commit comments

Comments
 (0)