Compare commits

...

2 Commits

Author SHA1 Message Date
9d797f7aef ci: Add Jenkins pipeline
All checks were successful
infra/updatecheck/pipeline/head This commit looks good
2025-11-20 09:42:03 -06:00
1855fac18d Add container image build script 2025-11-20 09:42:03 -06:00
3 changed files with 41 additions and 0 deletions

4
.containerignore Normal file
View File

@@ -0,0 +1,4 @@
*
!src
!Cargo.lock
!Cargo.toml

31
Containerfile Normal file
View File

@@ -0,0 +1,31 @@
FROM docker.io/library/alpine AS build
RUN --mount=type=cache,target=/var/cache/apk <<EOS
xargs apk add <<PKGS
cargo
libc-dev
openssl
openssl-dev
rust
PKGS
EOS
WORKDIR /src
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry <<EOS
set -e
cargo build --release
cp target/release/updatecheck /updatecheck
strip /updatecheck
EOS
FROM docker.io/library/alpine
RUN --mount=type=cache,target=/var/cache/apk apk add libgcc openssl
COPY --from=build /updatecheck /usr/local/bin
ENTRYPOINT ["updatecheck"]

6
ci/Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,6 @@
@Library('containerimages')_
buildContainerImage2(
project: 'infra',
archlist: ['amd64', 'arm64'],
)