feat: first commit

This commit is contained in:
JasterV 2026-03-04 00:34:40 +01:00
parent 61cc4fbf6c
commit b2c244fecd
3 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,16 @@
when:
event: [push, manual]
branch: main
path: ["rust.Dockerfile"]
steps:
publish:
image: plugins/kaniko
settings:
repo: jasterv/rust-ci
tags: latest
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_PASSWORD
dockerfile: rust.Dockerfile

View file

@ -1,3 +1,7 @@
# docker # docker
My docker images In this repo I define my public docker images for my own use.
## Public images
+ `jasterv/rust-ci`: Based on the official `rust` image but contains additional tools that I use on all my projects: `cargo clippy`, `cargo nextest`, `cargo deny`, `cargo make`

19
rust.Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM rust:1.93.1-slim-bookworm
# Install system dependencies for cargo-binstall and common rust crates
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
# Pre-install rustup components
RUN rustup component add clippy rustfmt
# Install cargo-binstall and your tools
RUN curl -Lskj https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | tar -xz -C /usr/local/bin
RUN cargo binstall --no-confirm cargo-make cargo-deny cargo-nextest
# Set environment variables so they don't need to be in .woodpecker.yml
ENV CARGO_TERM_COLOR=always