From 9dfdcfbacc8a7e3b1769cd043d82db7862cb4250 Mon Sep 17 00:00:00 2001 From: William Freudenberger Date: Mon, 13 Nov 2023 11:44:21 +0100 Subject: [PATCH] fix: toolchain version docker build --- .github/workflows/build-docker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index acb05c0c8f..7e00931317 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -10,8 +10,6 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}${{ github.ref == '/refs/heads/main' && github.sha || 'false' }} cancel-in-progress: true -env: - RUST_TOOLCHAIN: "1.66" jobs: docker: strategy: @@ -36,6 +34,12 @@ jobs: docker volume ls df -h + - name: Install toolchain from rust-toolchain.toml + shell: sh + run: | + TOOLCHAIN_VERSION=$(grep 'channel =' rust-toolchain.toml | awk -F'"' '{print $2}') + rustup toolchain install "$TOOLCHAIN_VERSION" + - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 #v3 - name: DockerHub Login