Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/terraform/stacks/sample_bucket/te…
Browse files Browse the repository at this point in the history
…rraform-9f405e0b31
  • Loading branch information
rdhar authored Jul 15, 2024
2 parents 88087a7 + b9c5391 commit 56b1bdc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/tf_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Authenticate AWS
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
Expand All @@ -45,8 +45,9 @@ jobs:
- name: Provision TF
uses: ./
with:
command_input: ${{ format('-tf={0} -chdir=stacks/sample_instance -var-file=env/{1}.tfvars', github.event.action != 'closed' && 'plan -lock=false' || 'apply', matrix.context) }}
cache_plugins: false
arg_command: ${{ github.event.action != 'closed' && 'plan' || 'apply' }}
arg_chdir: stacks/sample_instance
arg_var_file: ${{ format('env/{0}.tfvars', matrix.context) }}

Bucket:
runs-on: ubuntu-latest
Expand All @@ -59,7 +60,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Authenticate AWS
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
Expand All @@ -75,5 +76,6 @@ jobs:
- name: Provision TF
uses: ./
with:
command_input: ${{ format('-tf={0} -chdir=stacks/sample_bucket -backend-config=backend/{1}.tfbackend', github.event.action != 'closed' && 'plan -lock=false' || 'apply', matrix.context) }}
cache_plugins: false
arg_command: ${{ github.event.action != 'closed' && 'plan' || 'apply' }}
arg_chdir: stacks/sample_bucket
arg_backend_config: ${{ format('backend/{0}.tfbackend', matrix.context) }}

0 comments on commit 56b1bdc

Please sign in to comment.