mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 09:42:25 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user