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