Builder image for workflows
/ build (push) Successful in 4m37s Details

This commit is contained in:
Tony Garnock-Jones 2024-05-31 15:00:18 +02:00
parent b9053ad881
commit b10acaf4a6
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
FROM rust:latest
RUN cargo install cross
# This is necessary for cross to be able to access /var/run/docker.sock
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/
RUN curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh && bash nodesource_setup.sh && rm -f nodesource_setup.sh && apt -y install nodejs && apt clean

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# You need to have already logged in:
#
# docker login git.syndicate-lang.org
#
# Use a token with read-only access to user scope, this seems to be sufficient (!)
set -e
docker build -t git.syndicate-lang.org/syndicate-lang/rust-builder .
docker push git.syndicate-lang.org/syndicate-lang/rust-builder