Fix tekton pipelines.
Some checks failed
rust-test Build rust-test has started
build Build build has failed
format Build format has failed
clippy Build clippy has failed

This commit is contained in:
Tom Alexander
2026-07-10 23:22:55 -04:00
parent 3cdde05975
commit b0809ac219
6 changed files with 173 additions and 59 deletions

View File

@@ -1,7 +1,8 @@
# syntax=docker/dockerfile:1
ARG ALPINE_VERSION="3.20"
ARG ALPINE_VERSION="3.24"
ARG RUST_NIGHTLY_VERSION="2026-07-11"
FROM rustlang/rust:nightly-alpine$ALPINE_VERSION AS builder
FROM rustlang/rust:nightly-alpine$ALPINE_VERSION-$RUST_NIGHTLY_VERSION AS builder
RUN apk add --no-cache musl-dev
@@ -9,8 +10,8 @@ RUN mkdir /root/natter
WORKDIR /root/natter
COPY --link . .
# TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static"
RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked CARGO_TARGET_DIR=/target cargo build --profile release-lto
RUN --mount=type=tmpfs,target=/tmp --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked CARGO_TARGET_DIR=/target cargo build --profile lto
FROM alpine:$ALPINE_VERSION AS runner
COPY --link --from=builder /target/release-lto/natter /usr/bin/
COPY --link --from=builder /target/lto/natter /usr/bin/