testing using env in job block #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: IaC Main | ||
concurrency: | ||
group: iac | ||
cancel-in-progress: true | ||
on: | ||
push: | ||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
TF_VERSION: '1.6.2' | ||
TG_VERSION: '0.55.15' | ||
AWS_REGION: us-east-1 | ||
jobs: | ||
dummy: | ||
runs-on: ubuntu/latest | ||
steps: | ||
- name: some crap | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-region: ${{env.AWS_REGION }} | ||
verify: | ||
if: github.ref != 'refs/heads/main' | ||
strategy: | ||
matrix: | ||
environment: [stage, production] | ||
module: [terraform/tfbackend, network/vpc, services/backend-infra, data-store/cache, data-store/database, services/frontend] | ||
uses: ./.github/workflows/iac_verify.yaml | ||
with: | ||
tf_version: ${{ env.TF_VERSION }} | ||
Check failure on line 35 in .github/workflows/iac_main.yaml
|
||
tg_version: ${{ env.TG_VERSION }} | ||
aws_region: ${{ env.AWS_REGION }} | ||
environment: ${{ matrix.environment }} | ||
module: ${{ matrix.module }} | ||
secrets: inherit | ||
apply: | ||
if: github.ref == 'refs/heads/main' | ||
strategy: | ||
matrix: | ||
environment: [stage] | ||
module: [terraform/tfbackend, network/vpc, services/backend-infra, data-store/cache, data-store/database, services/frontend] | ||
uses: ./.github/workflows/iac_apply.yaml | ||
with: | ||
tf_version: ${{ env.TF_VERSION }} | ||
tg_version: ${{ env.TG_VERSION }} | ||
aws_region: ${{ env.AWS_REGION }} | ||
environment: ${{ matrix.environment }} | ||
module: ${{ matrix.module }} | ||
secrets: inherit | ||