-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove release-tag updation workflow Signed-off-by: Rishav Dhar <[email protected]> * reorder permissions block Signed-off-by: Rishav Dhar <[email protected]> * rename directory Signed-off-by: Rishav Dhar <[email protected]> * include `arg_or_create: true` Signed-off-by: Rishav Dhar <[email protected]> * replace scripts Signed-off-by: Rishav Dhar <[email protected]> * rename tests Signed-off-by: Rishav Dhar <[email protected]> * update workflow inputs Signed-off-by: Rishav Dhar <[email protected]> * bump deps Signed-off-by: Rishav Dhar <[email protected]> * test old stacks Signed-off-by: Rishav Dhar <[email protected]> * remove old stacks Signed-off-by: Rishav Dhar <[email protected]> * add stg tfbackend Signed-off-by: Rishav Dhar <[email protected]> * reorder workspace select Signed-off-by: Rishav Dhar <[email protected]> * filter sample matrix Signed-off-by: Rishav Dhar <[email protected]> * include dev and stg for bucket Signed-off-by: Rishav Dhar <[email protected]> * complete sample workflow Signed-off-by: Rishav Dhar <[email protected]> * test `pass_character_limit` Signed-off-by: Rishav Dhar <[email protected]> * enable all tests Signed-off-by: Rishav Dhar <[email protected]> * update code ownership and dependency automation Signed-off-by: Rishav Dhar <[email protected]> * simplify `arg_var_file` Signed-off-by: Rishav Dhar <[email protected]> * retry Signed-off-by: Rishav Dhar <[email protected]> * filter sample Signed-off-by: Rishav Dhar <[email protected]> * test sample environment Signed-off-by: Rishav Dhar <[email protected]> * replace stg with qa Signed-off-by: Rishav Dhar <[email protected]> * bump versions Signed-off-by: Rishav Dhar <[email protected]> * update assets Signed-off-by: Rishav Dhar <[email protected]> * replace `stg` with `qa` Signed-off-by: Rishav Dhar <[email protected]> * update example workflows Signed-off-by: Rishav Dhar <[email protected]> * add `arg_lock: false` Signed-off-by: Rishav Dhar <[email protected]> * add `arg_lock: false` Signed-off-by: Rishav Dhar <[email protected]> * add `continue-on-error: true` Signed-off-by: Rishav Dhar <[email protected]> * update wording Signed-off-by: Rishav Dhar <[email protected]> --------- Signed-off-by: Rishav Dhar <[email protected]>
- Loading branch information
Showing
56 changed files
with
1,017 additions
and
1,766 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# These owners will be the default owners for everything in the repo. | ||
# Each line is a file pattern followed by one or more owners. | ||
# Order is important as the last matching pair takes precedence. | ||
* @rdhar | ||
* @rdhar |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Trigger on pull_request (plan) and merge_group (apply) events with OpenTofu in matrix strategy. | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
tf: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
actions: read # Required to download repository artifact. | ||
checks: write # Required to add status summary. | ||
contents: read # Required to checkout repository. | ||
pull-requests: write # Required to add PR comment and label. | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
deployment: [dev, qa, prod] | ||
|
||
environment: ${{ github.event_name == 'merge_group' && matrix.deployment || '' }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup TF | ||
uses: opentofu/setup-opentofu@v1 | ||
|
||
- name: Provision TF | ||
uses: devsectop/tf-via-pr@v11 | ||
with: | ||
arg_chdir: directory/path | ||
arg_command: ${{ github.event_name == 'merge_group' && 'apply' || 'plan' }} | ||
arg_var_file: env/${{ matrix.deployment }}.tfvars | ||
arg_workspace: ${{ matrix.deployment }} | ||
arg_lock: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Trigger on pull_request (plan) and push (apply) events with Terraform and AWS authentication. | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
tf: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
actions: read # Required to download repository artifact. | ||
checks: write # Required to add status summary. | ||
contents: read # Required to checkout repository. | ||
id-token: write # Required to authenticate via OIDC. | ||
pull-requests: write # Required to add PR comment and label. | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Authenticate AWS | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-region: us-east-1 | ||
role-to-assume: ${{ secrets.AWS_ROLE }} | ||
|
||
- name: Setup TF | ||
uses: hashicorp/setup-terraform@v3 | ||
|
||
- name: Provision TF | ||
uses: devsectop/tf-via-pr@v11 | ||
with: | ||
arg_chdir: directory/path | ||
arg_command: ${{ github.event_name == 'push' && 'apply' || 'plan' }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Trigger on pull_request (plan or apply) event with tenv proxy to avoid TF wrapper. | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, closed] | ||
|
||
jobs: | ||
tf: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
actions: read # Required to download repository artifact. | ||
checks: write # Required to add status summary. | ||
contents: read # Required to checkout repository. | ||
pull-requests: write # Required to add PR comment and label. | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Provision TF | ||
uses: devsectop/tf-via-pr@v11 | ||
with: | ||
arg_chdir: directory/path | ||
arg_command: ${{ github.event.pull_request.merged && 'apply' || 'plan' }} | ||
tf_version: ~> 1.8.0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.