diff --git a/.github/workflows/.deployer.yml b/.github/workflows/.deployer.yml index 07a8efbc..2967e41a 100644 --- a/.github/workflows/.deployer.yml +++ b/.github/workflows/.deployer.yml @@ -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 @@ -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: @@ -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