Skip to content

Commit a136954

Browse files
decofehorsefacts
andauthored
chore: pin Docker base images, pin cargo install versions, add Dependabot (#398)
- Pin debian:bookworm-slim and rust:1.93-bookworm to digest - Pin cargo install [email protected] [email protected] --locked - Add Dependabot config for cargo + github-actions (weekly, 7-day cooldown) Co-authored-by: horsefacts <[email protected]>
1 parent ca5b4c6 commit a136954

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
cooldown:
8+
default-days: 7
9+
10+
- package-ecosystem: github-actions
11+
directory: /
12+
schedule:
13+
interval: weekly
14+
cooldown:
15+
default-days: 7

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked,id=cargo-
1616
cargo build --profile ${RUST_PROFILE} \
1717
--bin tempo-zone --features "jemalloc"
1818

19-
FROM debian:bookworm-slim AS base
19+
FROM debian:bookworm-slim@sha256:4724b8cc51e33e398f0e2e15e18d5ec2851ff0c2280647e1310bc1642182655d AS base
2020

2121
RUN apt-get update && apt-get install -y --no-install-recommends \
2222
ca-certificates \

Dockerfile.chef

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM rust:1.93-bookworm AS chef
1+
FROM rust:1.93-bookworm@sha256:7c4ae649a84014c467d79319bbf17ce2632ae8b8be123ac2fb2ea5be46823f31 AS chef
22

3-
RUN cargo install cargo-chef sccache
3+
RUN cargo install cargo-chef@0.1.77 sccache@0.14.0 --locked
44

55
WORKDIR /app
66

0 commit comments

Comments
 (0)