Skip to content

Commit

Permalink
filter sample
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Dhar <19497993+RDhar@users.noreply.github.com>
  • Loading branch information
rdhar committed Jul 29, 2024
1 parent 1cc5b81 commit 51f1cc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tf_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
strategy:
fail-fast: false
matrix:
dir: [bucket, instance]
# dir: [bucket, instance]
dir: [instance]
env: [dev, stg]

environment: ${{ github.event_name == 'push' && format('{0}/{1}', matrix.dir, matrix.env) || '' }}
Expand All @@ -52,7 +53,7 @@ jobs:
arg_chdir: sample/${{ matrix.dir }}
arg_command: ${{ github.event_name == 'push' && 'apply' || 'plan' }}
arg_backend_config: ${{ contains(matrix.dir, 'bucket') && format('backend/{0}.tfbackend', matrix.env) || '' }}
arg_var_file: ${{ contains(matrix.dir, 'instance') }} && env/${{ matrix.env }}.tfvars
arg_var_file: env/${{ matrix.env }}.tfvars
# arg_var_file: ${{ contains(matrix.dir, 'instance') && format('env/{0}.tfvars', matrix.env) || '' }}
arg_workspace: ${{ matrix.env }}
arg_or_create: true

0 comments on commit 51f1cc0

Please sign in to comment.