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).pull/24376/head
parent
dca1dd1d14
commit
43569c11c2
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue