Skip to content

Commit

Permalink
Fix the changes for the Diagram test
Browse files Browse the repository at this point in the history
  • Loading branch information
Samyak Rout committed Nov 17, 2024
1 parent 7d529c7 commit 9c87763
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/manual: Generate-TF-Plan-Diagram.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
sleep 30
done
terraform show -json /tmp/plan.out > plan.json
docker run --rm -it -p 9000:9000 -v /tmp/plan.json:/src/plan.json im2nguyen/rover:latest -planJSONPath=plan.json
working-directory: infra_env_dashboard/infra-automation
env:
TF_VAR_client_id: ${{ secrets.ARM_CLIENT_ID }}
Expand All @@ -86,4 +85,15 @@ jobs:
TF_VAR_tenant_id: ${{ secrets.ARM_TENANT_ID }}
TF_VAR_admin_password: ${{ secrets.ADMIN_PASSWORD }}
TF_VAR_vm_admin_password: ${{ secrets.ADMIN_PASSWORD }}
TF_VAR_resource_group_name: "dashboard-service-rg"
TF_VAR_resource_group_name: "dashboard-service-rg"

# Step 7: Run Rover Docker to Visualize the Plan
- name: Run Terraform Plan Visualization
uses: addnab/docker-run-action@v3
with:
registry: docker.io
image: im2nguyen/rover:latest
options: -v /tmp:/src -p 9000:9000
run: |
echo "Starting Rover Visualization"
rover -planJSONPath=/src/plan.json

0 comments on commit 9c87763

Please sign in to comment.