This commit is contained in:
9
.dockerignore
Normal file
9
.dockerignore
Normal 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
|
||||
17
.gitea/workflows/release-image.yaml
Normal file
17
.gitea/workflows/release-image.yaml
Normal 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
7
Dockerfile
Normal 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
8
setup.sh
Normal 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
|
||||
Reference in New Issue
Block a user