perf(ci): use Docker integrated BuildKit
This commit is contained in:
Vendored
+1
-1
@@ -129,7 +129,7 @@ pipeline {
|
|||||||
withCredentials([usernamePassword(credentialsId: "${NODE_CREDENTIALS}", usernameVariable: 'JENKINS_NODE_USERNAME', passwordVariable: 'JENKINS_NODE_PASSWORD')]) {
|
withCredentials([usernamePassword(credentialsId: "${NODE_CREDENTIALS}", usernameVariable: 'JENKINS_NODE_USERNAME', passwordVariable: 'JENKINS_NODE_PASSWORD')]) {
|
||||||
sh '''
|
sh '''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
DOCKER_BUILDKIT=0 ./scripts/ci-docker.sh build --network host \
|
DOCKER_BUILDKIT=1 ./scripts/ci-docker.sh build --network host --progress=plain \
|
||||||
--build-arg PIP_INDEX_URL="$PIP_INDEX_URL" \
|
--build-arg PIP_INDEX_URL="$PIP_INDEX_URL" \
|
||||||
--build-arg HTTP_PROXY="$HTTP_PROXY_URL" --build-arg HTTPS_PROXY="$HTTP_PROXY_URL" \
|
--build-arg HTTP_PROXY="$HTTP_PROXY_URL" --build-arg HTTPS_PROXY="$HTTP_PROXY_URL" \
|
||||||
--build-arg NO_PROXY="$NO_PROXY_HOSTS" -t "$IMAGE_REF" .
|
--build-arg NO_PROXY="$NO_PROXY_HOSTS" -t "$IMAGE_REF" .
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ def test_jenkins_uses_fast_index_for_every_pip_stage() -> None:
|
|||||||
def test_native_amd64_pipeline_does_not_boot_buildx() -> None:
|
def test_native_amd64_pipeline_does_not_boot_buildx() -> None:
|
||||||
pipeline = (Path(__file__).parents[1] / "Jenkinsfile").read_text()
|
pipeline = (Path(__file__).parents[1] / "Jenkinsfile").read_text()
|
||||||
assert 'test "$(uname -m)" = x86_64' in pipeline
|
assert 'test "$(uname -m)" = x86_64' in pipeline
|
||||||
assert "DOCKER_BUILDKIT=0 ./scripts/ci-docker.sh build" in pipeline
|
assert "DOCKER_BUILDKIT=1 ./scripts/ci-docker.sh build" in pipeline
|
||||||
assert "buildx" not in pipeline
|
assert "buildx" not in pipeline
|
||||||
assert "--no-cache" not in pipeline
|
assert "--no-cache" not in pipeline
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user