Add image with all toolchains installed
Some checks failed
publish / docker (push) Failing after 23s
Some checks failed
publish / docker (push) Failing after 23s
This commit is contained in:
@@ -8,7 +8,7 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: sh -c 'curl -sSL https://get.docker.com/ | sh'
|
# - run: sh -c 'curl -sSL https://get.docker.com/ | sh'
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
build-args: TOOLCHAIN=stable
|
build-args: TOOLCHAIN=stable
|
||||||
file: 'rustup/Dockerfile'
|
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
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
@@ -43,3 +43,12 @@ jobs:
|
|||||||
build-args: TOOLCHAIN=nightly
|
build-args: TOOLCHAIN=nightly
|
||||||
file: 'rustup/Dockerfile'
|
file: 'rustup/Dockerfile'
|
||||||
tags: gitea.loadingm.xyz/the10thwiz/rustup:nightly
|
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
|
||||||
|
|||||||
@@ -23,10 +23,11 @@ RUN apt-get update && \
|
|||||||
# OPENSSL_INCLUDE_DIR=/usr/local/ssl/include \
|
# OPENSSL_INCLUDE_DIR=/usr/local/ssl/include \
|
||||||
# OPENSSL_STATIC=1
|
# OPENSSL_STATIC=1
|
||||||
|
|
||||||
ARG TOOLCHAIN
|
|
||||||
|
|
||||||
# install toolchain
|
# install toolchain
|
||||||
|
ARG TOOLCHAIN
|
||||||
RUN curl https://sh.rustup.rs -sSf | \
|
RUN curl https://sh.rustup.rs -sSf | \
|
||||||
sh -s -- --default-toolchain $TOOLCHAIN -y
|
sh -s -- --default-toolchain $TOOLCHAIN -y
|
||||||
|
|
||||||
ENV PATH=/root/.cargo/bin:$PATH
|
ENV PATH=/root/.cargo/bin:$PATH
|
||||||
|
|
||||||
|
ARG EXTRA=""
|
||||||
|
RUN for name in "$EXTRA"; do rustup install $name; done
|
||||||
|
|||||||
Reference in New Issue
Block a user