From ba1570bf59ed247d0b385cb91d8fd8db346bbfee Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 21 Aug 2022 00:26:37 +0200 Subject: [PATCH] and again --- scripts/build_release.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/build_release.sh b/scripts/build_release.sh index 312243e..c19986e 100755 --- a/scripts/build_release.sh +++ b/scripts/build_release.sh @@ -23,15 +23,13 @@ export DOCKER_BUILDKIT=1 function build_target { target=$1 echo "building $target" - target_tag="$base_tag-$target:${COMMIT_SHA:0:10}" latest_target_tag="$base_tag-$target:latest" docker build \ --target "$target" \ - --tag "$target_tag" \ + --tag "$latest_target_tag" \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from $latest_target_tag \ --file "$TMP/build_release.Dockerfile" . - docker tag "$target_tag" "$latest_target_tag" } build_target "deps"