Skip to content

Commit

Permalink
- Add check_changes step in deploy_infra
Browse files Browse the repository at this point in the history
- Rename deploy to build when build-infra wf is running
  • Loading branch information
Ronaldo Macapobre committed Aug 27, 2024
1 parent 2e5c36e commit fe5e8a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/aws-template-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
TF_VAR_environment: ${{ vars.ENVIRONMENT_NAME }}
TF_VAR_kms_key_name: ${{ vars.KMS_KEY_NAME }}
TF_VAR_vpc_id: ${{ vars.VPC_ID }}
needs: [scan]
needs: [check_changes, scan]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- prod

jobs:
deploy:
build:
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}"
Expand Down

0 comments on commit fe5e8a1

Please sign in to comment.