ci: Add Jenkins build pipeline
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:
2024-01-13 10:44:44 -06:00
parent 4c7192582d
commit e5403dbc66
7 changed files with 152 additions and 0 deletions

25
Containerfile Normal file
View 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'