Skip to content

Commit 69ed25a

Browse files
authored
fix: cilium nightly pipeline set boringcrypto arg in build (#4063)
* skip goimg override * test build go 1.25.0 * test go 1.25.0-1 * set nosystemcrypto * test * test * set cgo * try patching dockerfile * insert patch differt loc * update env * update env 2 * update env 3 * set condtion for operator * set condtion for operator fix * set condtion for operator fix 2 * set condtion for operator fix 3 * add back build args * test cgo 0 * set systemcrypto * set systemcrypto test * set goexperiment for microsoft img only * replace nosystemcrypto with boringcrypto * cleanup docker no cache * cleanup * test
1 parent cf7f359 commit 69ed25a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.pipelines/cni/cilium/nightly-release-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ stages:
3535
steps:
3636
- bash: |
3737
set -ex
38+
3839
cd .pipelines/
3940
git clone https://github.com/cilium/cilium.git
4041
cd cilium
@@ -62,10 +63,20 @@ stages:
6263
echo "alpine MCR image: ${alpineACR}"
6364
ALPINE_ARGS="--build-arg ALPINE_IMAGE=${alpineACR} "
6465
fi
65-
BUILD_ARGS=${GO_ARGS}${ALPINE_ARGS}
6666
67+
if [ "$(type)" = "docker-operator-generic-image" ]; then
68+
# Apply patch to Dockerfile
69+
DOCKERFILE_PATH="./images/$(directory)/Dockerfile"
70+
echo "Patching Dockerfile: $DOCKERFILE_PATH"
71+
72+
# Add ARG and ENV statements to disable systemcrypto for Microsoft Go
73+
sed -i '/^FROM.*builder/a ARG GOEXPERIMENT=boringcrypto \nENV GOEXPERIMENT=${GOEXPERIMENT}' "$DOCKERFILE_PATH"
74+
fi
75+
76+
BUILD_ARGS=${GO_ARGS}${ALPINE_ARGS}
6777
DOCKER_FLAGS="$BUILD_ARGS" \
6878
make $(type)
79+
6980
name: BuildCiliumImage
7081
displayName: "Build Cilium Image"
7182
- task: AzureCLI@2

0 commit comments

Comments
 (0)