Skip to content

Commit

Permalink
fix: downloading artifcats with multiple plugin invokces (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelFoleyFZ authored Oct 10, 2024
1 parent 4c94aa2 commit f20372d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add the following to your `pipeline.yml`:
steps:
- command: ~
plugins:
- fatzebra/terragrunt-workspace#v1.4.4:
- fatzebra/terragrunt-workspace#v1.4.5:
module_dir: "test/test/"
```
Expand Down Expand Up @@ -52,7 +52,7 @@ After adding the docker plugin you also need to run the module discovery as a co
steps:
- command: buildkite-agent meta-data set terragrunt-workspace-module-groups "$(terragrunt output-module-groups --terragrunt-working-dir /test/test)"
plugins:
- fatzebra/terragrunt-workspace#v1.4.4:
- fatzebra/terragrunt-workspace#v1.4.5:
module_dir: "test/test/"
- docker#v5.11.0:
image: "devopsinfra/docker-terragrunt:aws-tf-1.9.7-tg-0.67.16"
Expand Down
4 changes: 3 additions & 1 deletion hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ printf '\n\n%s' "${annotation[@]}" | buildkite-agent annotate --style "info" --c
# shellcheck disable=SC2124
PIPELINE+="
- label: \":terragrunt: [${BUILDKITE_LABEL}] Plan Modules\"
key: \"plan-${MODULE_DIR}\"
command: |-
printf '\n\n%s' \"---\" | buildkite-agent annotate --append --context \"${BUILDKITE_STEP_ID}\"
printf '\n\n%s' \":rocket: Selected modules\" | buildkite-agent annotate --append --context \"${BUILDKITE_STEP_ID}\"
Expand All @@ -229,10 +230,11 @@ ${step_args[@]}
prompt: Apply changes?
- label: \":terragrunt: [${BUILDKITE_LABEL}] Apply Modules\"
key: \"apply-${MODULE_DIR}\"
command: |-
${refresh_commands[@]}
mkdir -p .plans
buildkite-agent artifact download '.plans/**' .plans
buildkite-agent artifact download '.plans/**' .plans --step 'plan-${MODULE_DIR}'
for module in \$\$(buildkite-agent meta-data get modules); do
echo \"+++ applying \$\${module}\"
${plan_decryption_command}
Expand Down

0 comments on commit f20372d

Please sign in to comment.