Merge pull request #3320 from influxdata/crepererum/improve_perf_build_time

ci: improve perf image build time by pre-fetching correct rust version
pull/24376/head
kodiakhq[bot] 2021-12-07 10:38:49 +00:00 committed by GitHub
commit f0dcc6b1b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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" \