Skip to content

Commit

Permalink
fix(terraform): include plugins downloaded from cache in artifact (#591)
Browse files Browse the repository at this point in the history
When enabling the plugin cache, Terraform will create symbolic links in the current working directory to the plugin cache directory.
As a result, the plugin cache directory must be included in the artifact to be download by the Terraform Apply job.
  • Loading branch information
hknutsen authored Nov 18, 2024
1 parent b92cd10 commit eaa211a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
- name: Create Terraform plugin cache
id: mkdir
run: |
plugin_cache_dir="$RUNNER_TEMP/.terraform.d/plugin-cache"
plugin_cache_dir=".terraform.d/plugin-cache"
mkdir --parents "$plugin_cache_dir"
echo "plugin_cache_dir=$plugin_cache_dir" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit eaa211a

Please sign in to comment.