mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-08 02:51:24 +01:00
pipeline: include the version in the dynamic config key (#28793)
Cache scopes allow other branches to inherit default branch scopes, which means that release branches can restore a key from main. Instead, we now include the vault version as part of the cache key to ensure we don't include versions that are incompatible with our version. Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
parent
68ed4ac841
commit
31b139c8ce
@ -27,7 +27,7 @@ runs:
|
||||
# Uses GITHUB_ENV instead of GITHUB_OUTPUT because composite actions are broken,
|
||||
# see: https://github.com/actions/cache/issues/803#issuecomment-1793565071
|
||||
{
|
||||
echo "DYNAMIC_CONFIG_KEY=$(date +%Y-%m-%U)"
|
||||
echo "DYNAMIC_CONFIG_KEY=${{ inputs.vault-version }}-$(date +%Y-%m-%U)"
|
||||
echo "DYNAMIC_CONFIG_PATH=enos/enos-dynamic-config.hcl"
|
||||
} | tee -a "$GITHUB_ENV"
|
||||
- name: Try to restore dynamic config from cache
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user