first effort
All checks were successful
Continuous Releases / build (push) Successful in 2s

This commit is contained in:
Eau
2026-03-20 00:11:25 -05:00
commit db821b6d8b
4 changed files with 41 additions and 0 deletions

9
.dockerignore Normal file
View File

@@ -0,0 +1,9 @@
*
!setup.sh
# Ignore unnecessary files inside allowed directories
# This should go after the allowed directories
**/*~
**/*.log
**/.DS_Store
**/Thumbs.db

View File

@@ -0,0 +1,17 @@
on: [push]
name: Continuous Releases
env:
IMAGE_TAG: ci-rust-img
UBUNTU_VERSION: latest
jobs:
publish_image:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: docker build . -t ${{ env.IMAGE_TAG }} --build-arg UBUNTU_VERSION=${{ UBUNTU_VERSION }}

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
ARG UBUNTU_VERSION=latest
FROM ubuntu:${UBUNTU_VERSION}
LABEL AUTHOR=Lauren
WORKDIR /opt/setup
RUN apt update
COPY setup.sh /opt/setup/setup.sh
RUN bash /opt/setup/setup.sh

8
setup.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
apt install -y mingw-w64 curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
export PATH=$PATH:/root/.cargo/bin
rustup toolchain install stable
rustup target add x86_64-pc-windows-gnu
rustup target add aarch64-apple-darwin
rustup target add x86_64-unknown-linux-gnu