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"