Skip to content

Commit

Permalink
fix: stack prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp committed Dec 29, 2024
1 parent e72669a commit 4b15099
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/.deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ env:
TG_SRC_PATH: terraform/${{ inputs.working_directory }}
AWS_REGION: ca-central-1
jobs:
stack-prefix:
name: Stack Prefix
uses: ./.github/workflows/.stack-prefix.yml
infra:
needs: [stack-prefix]
environment: ${{ inputs.environment_name }}
name: Terraform ${{inputs.command}} ${{inputs.working_directory}} ${{inputs.environment_name}}
runs-on: ubuntu-24.04
Expand All @@ -72,9 +76,6 @@ jobs:
uses: autero1/action-terragrunt@v3
with:
terragrunt-version: ${{ env.TG_VERSION }}
- name: Stack Prefix
id: stack-prefix
uses: ./.github/workflows/.stack-prefix.yml
- name: Terragrunt ${{inputs.command}}
working-directory: terraform/${{ inputs.working_directory }}/${{ inputs.environment_name }}
env:
Expand All @@ -83,7 +84,7 @@ jobs:
flyway_image: ghcr.io/${{github.repository}}/migrations:${{inputs.tag}}
api_image: ghcr.io/${{github.repository}}/backend:${{inputs.tag}}
app_env: ${{inputs.app_env}}
stack_prefix: ${{ steps.stack-prefix.outputs.STACK_PREFIX }}
stack_prefix: ${{ needs.stack-prefix.outputs.STACK_PREFIX }}
run: |
# Run terraform
terragrunt run-all ${{inputs.command}} --terragrunt-non-interactive
Expand Down

0 comments on commit 4b15099

Please sign in to comment.