File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -72,23 +72,14 @@ stages:
7272 # Add ARG and ENV statements to disable systemcrypto for Microsoft Go
7373 sed -i '/^FROM.*builder/a ARG GOEXPERIMENT=boringcrypto \nENV GOEXPERIMENT=${GOEXPERIMENT}\nENV CGO_ENABLED=1' "$DOCKERFILE_PATH"
7474
75- # Clear Go module and build caches completely, then rebuild everything with nosystemcrypto
75+ # Clear Go module and build caches completely, then rebuild everything with boringcrypto
7676 sed -i '/ENV CGO_ENABLED=1/a RUN rm -rf /go/pkg /root/.cache && \\\n mkdir -p /go/pkg /tmp/gocache && \\\n cd /tmp && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 go env && \\\n GOCACHE=/tmp/gocache CGO_ENABLED=1 GOEXPERIMENT=boringcrypto go install -a -x std' "$DOCKERFILE_PATH"
77-
78- # Remove ALL cache mounts for /go/pkg and /root/.cache to avoid conflicts
79- sed -i 's/--mount=type=cache,target=\/go\/pkg[[:space:]]*//g' "$DOCKERFILE_PATH"
80- sed -i 's/--mount=type=cache,target=\/root\/\.cache[[:space:]]*//g' "$DOCKERFILE_PATH"
81-
82- echo "Modified Dockerfile contents (first 80 lines):"
83- head -80 "$DOCKERFILE_PATH"
8477 fi
8578
8679 BUILD_ARGS=${GO_ARGS}${ALPINE_ARGS}
8780 DOCKER_FLAGS="$BUILD_ARGS" \
8881 make $(type)
8982
90- # Clean up builder after build
91- docker buildx rm cilium-builder || true
9283 name: BuildCiliumImage
9384 displayName: "Build Cilium Image"
9485 - task : AzureCLI@2
You can’t perform that action at this time.
0 commit comments