Skip to content

Commit

Permalink
show plan for each module before building (#2784)
Browse files Browse the repository at this point in the history
* WIP: show plan for each module before building

Signed-off-by: Jason Hall <jason@chainguard.dev>

* test it

Signed-off-by: Jason Hall <jason@chainguard.dev>

* revert crane change

Signed-off-by: Jason Hall <jason@chainguard.dev>

---------

Signed-off-by: Jason Hall <jason@chainguard.dev>
  • Loading branch information
imjasonh authored Jun 2, 2024
1 parent 8a58f4e commit ad697f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/presubmit-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ jobs:
targets=""
for image in ${{ matrix.shard.images }}; do
targets+=' -target='module."${image}"''
echo "::group::Plan for ${image}"
terraform plan -target=module."${image}"
echo "::endgroup::"
done
terraform apply ${targets} -auto-approve --parallelism=$(nproc) -json | tee /tmp/mega-module.tf.json | jq -r '.["@message"]'
- name: Collect TF diagnostics
Expand Down

0 comments on commit ad697f3

Please sign in to comment.