Skip to content

Commit e45b9b0

Browse files
committed
feat: upgrade terramate features usage in automation
1 parent 85b340a commit e45b9b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/drift-detection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060

6161
- name: Run drift detection
6262
id: drift
63-
run: terramate run --cloud-sync-drift-status --cloud-sync-terraform-plan-file=drift.tfplan -- terraform plan -out drift.tfplan -detailed-exitcode -lock=false
63+
run: terramate run --cloud-sync-drift-status --cloud-sync-terraform-plan-file=drift.tfplan --continue-on-error -- terraform plan -out drift.tfplan -detailed-exitcode -lock=false
6464
env:
6565
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
id-token: write
1515
contents: read
1616
pull-requests: write
17+
checks: read
1718

1819
steps:
1920

@@ -86,17 +87,16 @@ jobs:
8687

8788
- name: Initialize Terraform in changed stacks
8889
if: steps.list.outputs.stdout
89-
run: terramate run --parallel=5 --changed -- terraform init -lock-timeout=5m
90+
run: terramate run --parallel 1 --changed -- terraform init -lock-timeout=5m
9091

9192
- name: Validate Terraform configuration in changed stacks
9293
if: steps.list.outputs.stdout
93-
run: terramate run --parallel=5 --changed -- terraform validate
94+
run: terramate run --parallel 5 --changed -- terraform validate
9495

9596
- name: Plan Terraform changes in changed stacks
9697
if: steps.list.outputs.stdout
9798
run: |
98-
echo >preview_url.txt "https://cloud.terramate.io/o/terramate-demo/review-requests"
99-
terramate run --parallel=5 --changed --cloud-sync-preview --cloud-sync-terraform-plan-file=out.tfplan -- terraform plan -out out.tfplan -detailed-exitcode -lock=false
99+
terramate run --parallel 5 --changed --cloud-sync-preview --cloud-sync-terraform-plan-file=out.tfplan --debug-preview-url preview_url.txt --continue-on-error -- terraform plan -out out.tfplan -detailed-exitcode -lock=false
100100
env:
101101
GITHUB_TOKEN: ${{ github.token }}
102102

0 commit comments

Comments
 (0)