Skip to content

Commit 7e1ff03

Browse files
committed
refactor: rename func docker_compose_supports_cache_from for use in both cache_from and cache_to
1 parent 2a54c39 commit 7e1ff03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/shared.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function build_image_override_file() {
134134
}
135135

136136
# Checks that a specific version of docker-compose supports cache_from
137-
function docker_compose_supports_cache_from() {
137+
function docker_compose_supports_cache() {
138138
local version="$1"
139139
if [[ "$version" == 1* || "$version" =~ ^(2|3)(\.[01])?$ ]] ; then
140140
return 1
@@ -216,7 +216,7 @@ function build_image_override_file_with_version() {
216216
fi
217217

218218
if [[ "$cache_from_amt" -gt 0 ]] ; then
219-
if ! docker_compose_supports_cache_from "$version" ; then
219+
if ! docker_compose_supports_cache "$version" ; then
220220
echo "Unsupported Docker Compose config file version: $version"
221221
echo "The 'cache_from' option can only be used with Compose file versions 2.2 or 3.2 and above."
222222
echo "For more information on Docker Compose configuration file versions, see:"

0 commit comments

Comments
 (0)