ci: Add Jenkins build pipeline
All checks were successful
dustin/tmpl/pipeline/head This commit looks good
All checks were successful
dustin/tmpl/pipeline/head This commit looks good
We'll build and publish `tmpl` with a container image, to make it easier for other container images to include it.
This commit is contained in:
25
Containerfile
Normal file
25
Containerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM registry.fedoraproject.org/fedora-minimal:39 AS build
|
||||
|
||||
RUN --mount=type=cache,target=/var/cache \
|
||||
microdnf install -y \
|
||||
--setopt install_weak_deps=0 \
|
||||
cargo\
|
||||
&& :
|
||||
|
||||
COPY . /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN cargo build --release --locked
|
||||
|
||||
|
||||
FROM registry.fedoraproject.org/fedora-minimal:39
|
||||
|
||||
COPY --from=build /src/target/release/tmpl /usr/local/bin
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/tmpl"]
|
||||
|
||||
LABEL name='tmpl' \
|
||||
vendor='Dustin C. Hatch' \
|
||||
license='MIT OR APACHE-2.0' \
|
||||
version='0.1.0'
|
||||
Reference in New Issue
Block a user