Special-case "latest" in CACHE_FROM in build script

pull/439/head
Hubbe 9 months ago committed by GitHub
parent f2a6420634
commit f3e2b5bb0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -47,7 +47,11 @@ CACHE_ARGS=()
if [ -n "${CACHE_FROM:-}" ]; then
# Note lack of quotes here - we want to word split
for commit in $CACHE_FROM; do
tag=$(git rev-parse --short "$commit")
if [ "$commit" == "latest" ]; then
tag="latest"
else
tag=$(git rev-parse --short "$commit")
fi
for component in "${COMPONENTS[@]}"; do
CACHE_IMAGES+=("$BASE/wubloader-$component:$tag")
CACHE_ARGS+=("--cache-from" "$BASE/wubloader-$component:$tag")

Loading…
Cancel
Save