From 43569c11c280b0c8649f6736571b1d31ab9e5b8f Mon Sep 17 00:00:00 2001 From: Marco Neumann Date: Tue, 7 Dec 2021 09:26:03 +0100 Subject: [PATCH] ci: improve perf image build time by pre-fetching correct rust version This avoids that we have to pull rustc and friends twice (once via image, once when actually executing it). --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 49854a1192..664745a0e7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -346,7 +346,10 @@ jobs: command: | COMMIT_SHA=$(git rev-parse --short HEAD) + RUST_VERSION=$(sed -E -ne 's/channel = "(.*)"/\1/p' rust-toolchain.toml) + docker buildx build \ + --build-arg RUST_VERSION="$RUST_VERSION" \ --build-arg RUSTFLAGS="-C target-feature=+avx2" \ --progress plain \ --tag quay.io/influxdb/iox:"$COMMIT_SHA" \