Something went wrong. Try again.
A Forgejo Runner plugin that spawn jobs as Kubernetes pods
kubernetes ci forgejo runner
Something went wrong. Try again.
1234567891011121314151617181920212223242526FROM --platform=$BUILDPLATFORM blurrycat/rust-builder:1.98 AS baseWORKDIR /app
FROM base AS plannerCOPY . .RUN cargo chef prepare --recipe-path recipe.json
FROM base AS builderCOPY --from=planner /app/recipe.json recipe.jsonRUN cargo chef cook --recipe-path recipe.json --release --zigbuild \ --target x86_64-unknown-linux-musl --target aarch64-unknown-linux-muslCOPY . .RUN cargo zigbuild -r \ --target x86_64-unknown-linux-musl --target aarch64-unknown-linux-musl && \ mkdir -p /build/linux && \ cp target/aarch64-unknown-linux-musl/release/kuranto /build/linux/arm64 && \ cp target/x86_64-unknown-linux-musl/release/kuranto /build/linux/amd64
FROM alpine:latest AS runtimeWORKDIR /appARG TARGETPLATFORMCOPY --from=builder /build/${TARGETPLATFORM} /usr/local/bin/kurantoUSER 65532:65532EXPOSE 50051CMD ["/usr/local/bin/kuranto"]