Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM clux/muslrust:stable AS builder
FROM clux/muslrust:1.78.0-nightly-2024-02-26 AS builder
COPY Cargo.* .
COPY version.rs version.rs
RUN --mount=type=cache,target=/volume/target \
--mount=type=cache,target=/root/.cargo/registry \
cargo build --release --bin version && \
mv /volume/target/x86_64-unknown-linux-musl/release/version .
mv /volume/target/*-unknown-linux-musl/release/version .

FROM cgr.dev/chainguard/static
COPY --from=builder --chown=nonroot:nonroot /volume/version /app/
Expand Down
2 changes: 1 addition & 1 deletion deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ spec:
serviceAccountName: version
containers:
- name: version
image: ghcr.io/kube-rs/version-rs:1.16.2
image: ghcr.io/kube-rs/version-rs:local
imagePullPolicy: IfNotPresent
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ release:

[private]
import:
k3d image import ghcr.io/kube-rs/version-rs:local --cluster main
k3d image import ghcr.io/kube-rs/version-rs:local --cluster main28
sd "image: .*" "image: ghcr.io/kube-rs/version-rs:local" deployment.yaml
kubectl apply -f deployment.yaml