Skip to content

Commit

Permalink
store before/after state, apply domain
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerthome committed Oct 10, 2024
1 parent 5c4cfa5 commit c06cac6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/terraform-plan-with-oidc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,25 @@ jobs:
run: |
pushd ./terraform-incubator/home-unite-us/dev
terraform init
terraform show
mkdir -p ./tfshow
terraform show -no-color 1> ./tfshow/before.tf 2>&1
# sudo apt-get -y update
# sudo apt-get install graphviz
# sudo apt-get install graphviz
# terraform graph -type=plan | dot -Tpng -o graph.png
terraform plan -out tf.plan
# terraform apply tf.plan
terraform apply tf.plan
terraform show -no-color 1> ./tfshow/after.tf 2>&1
tar czf ./homeuniteus.tfshow.tgz ./tfshow/*
- name: Store plan
uses: actions/upload-artifact@v4
with:
name: homeuniteus-graph
path: ./terraform-incubator/home-unite-us/dev/graph.png
name: homeuniteus-tf-show
path: ./terraform-incubator/home-unite-us/dev/homeuniteus.tfshow.tgz



Expand Down

0 comments on commit c06cac6

Please sign in to comment.