Browse Source

Fix the bug: download cc multiple times in buildx

Signed-off-by: JimmyYang20 <yangjin39@huawei.com>
tags/v0.5.1
JimmyYang20 3 years ago
parent
commit
08f29d346d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      hack/lib/buildx.sh

+ 3
- 2
hack/lib/buildx.sh View File

@@ -34,6 +34,9 @@ sedna::buildx::prepare_env() {
docker buildx create --use --name $builder_instance --driver docker-container
fi
docker buildx use $builder_instance

# go speed tag with CGO_ENABLED=1 and alpine image
_speed_buildx_for_cgo_alpine_
}

_speed_buildx_for_go_() {
@@ -101,8 +104,6 @@ sedna::buildx:generate-speed-dockerfile() {
# go speed tag
_speed_buildx_for_go_

# go speed tag with CGO_ENABLED=1 and alpine image
_speed_buildx_for_cgo_alpine_
)

local base_cmds='


Loading…
Cancel
Save