From edef221e69cfa3b942fdefedb1622df6c0bb3fec Mon Sep 17 00:00:00 2001 From: Matthew Pomes Date: Tue, 2 Sep 2025 22:57:50 -0500 Subject: [PATCH] Add image with all toolchains installed --- .gitea/workflows/publish.yaml | 11 ++++++++++- rustup/Dockerfile | 7 ++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index dc68a60..76731cd 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -28,7 +28,7 @@ jobs: push: true build-args: TOOLCHAIN=stable file: 'rustup/Dockerfile' - tags: gitea.loadingm.xyz/the10thwiz/rustup:stable,gitea.loadingm.xyz/the10thwiz/rustup:latest + tags: gitea.loadingm.xyz/the10thwiz/rustup:stable - name: Build and push uses: docker/build-push-action@v6 with: @@ -43,3 +43,12 @@ jobs: build-args: TOOLCHAIN=nightly file: 'rustup/Dockerfile' tags: gitea.loadingm.xyz/the10thwiz/rustup:nightly + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + build-args: | + TOOLCHAIN=stable + EXTRA="beta nightly" + file: 'rustup/Dockerfile' + tags: gitea.loadingm.xyz/the10thwiz/rustup:latest diff --git a/rustup/Dockerfile b/rustup/Dockerfile index de9aaf3..77a019e 100644 --- a/rustup/Dockerfile +++ b/rustup/Dockerfile @@ -23,10 +23,11 @@ RUN apt-get update && \ # OPENSSL_INCLUDE_DIR=/usr/local/ssl/include \ # OPENSSL_STATIC=1 -ARG TOOLCHAIN - # install toolchain +ARG TOOLCHAIN RUN curl https://sh.rustup.rs -sSf | \ sh -s -- --default-toolchain $TOOLCHAIN -y - ENV PATH=/root/.cargo/bin:$PATH + +ARG EXTRA="" +RUN for name in "$EXTRA"; do rustup install $name; done