Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Nov 12, 2024
1 parent 5978fc7 commit f3bb5d8
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/build-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,25 @@ on:
- "Yes"

jobs:
initial:
if: ${{ inputs.run_initial == 'Yes' }}
build:
runs-on: ubuntu-latest
outputs:
job_status: ${{ job.status }}
secrets: inherit

steps:
- name: Build Initial Infra
if: ${{ inputs.run_initial == 'Yes' }}
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/initial"
CHANGE_FOLDER_NAME: environments/${{ inputs.environment }}
ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }}
APPLY_TF_CODE: false

build:
needs: [initial]
if: ${{ inputs.run_initial == 'No' || needs.initial.outputs.job_status == 'success' }}
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}"
CHANGE_FOLDER_NAME: environments/${{ inputs.environment || 'dev' }}
ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }}
APPLY_TF_CODE: false
secrets: inherit
- name: Build Infra
uses: ./.github/workflows/aws-template-terraform.yml
with:
CONTEXT_FOLDER: "./infrastructure/cloud/environments/${{ inputs.environment || 'dev' }}"
CHANGE_FOLDER_NAME: environments/${{ inputs.environment || 'dev' }}
ENVIRONMENT_NAME: ${{ inputs.environment || 'dev' }}
APPLY_TF_CODE: false

0 comments on commit f3bb5d8

Please sign in to comment.