This commit is contained in:
parent
9ba428b6ad
commit
c25ec011c5
@ -29,7 +29,7 @@ function build_target {
|
|||||||
--target "$target" \
|
--target "$target" \
|
||||||
--tag "$target_tag" \
|
--tag "$target_tag" \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
--cache-from $latest_tag \
|
--cache-from $latest_target_tag \
|
||||||
--file "$TMP/build_release.Dockerfile" .
|
--file "$TMP/build_release.Dockerfile" .
|
||||||
docker tag "$target_tag" "$latest_target_tag"
|
docker tag "$target_tag" "$latest_target_tag"
|
||||||
}
|
}
|
||||||
@ -37,6 +37,10 @@ function build_target {
|
|||||||
build_target "deps"
|
build_target "deps"
|
||||||
build_target "builder"
|
build_target "builder"
|
||||||
|
|
||||||
docker build -t "$tag" --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from $latest_tag -f "$TMP/build_release.Dockerfile" .
|
docker build \
|
||||||
|
-t "$tag" \
|
||||||
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
|
--cache-from $latest_tag \
|
||||||
|
-f "$TMP/build_release.Dockerfile" .
|
||||||
docker tag "$tag" "$latest_tag"
|
docker tag "$tag" "$latest_tag"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user