This commit is contained in:
parent
c25ec011c5
commit
ba1570bf59
@ -23,15 +23,13 @@ export DOCKER_BUILDKIT=1
|
|||||||
function build_target {
|
function build_target {
|
||||||
target=$1
|
target=$1
|
||||||
echo "building $target"
|
echo "building $target"
|
||||||
target_tag="$base_tag-$target:${COMMIT_SHA:0:10}"
|
|
||||||
latest_target_tag="$base_tag-$target:latest"
|
latest_target_tag="$base_tag-$target:latest"
|
||||||
docker build \
|
docker build \
|
||||||
--target "$target" \
|
--target "$target" \
|
||||||
--tag "$target_tag" \
|
--tag "$latest_target_tag" \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
--cache-from $latest_target_tag \
|
--cache-from $latest_target_tag \
|
||||||
--file "$TMP/build_release.Dockerfile" .
|
--file "$TMP/build_release.Dockerfile" .
|
||||||
docker tag "$target_tag" "$latest_target_tag"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build_target "deps"
|
build_target "deps"
|
||||||
|
Loading…
Reference in New Issue
Block a user