Skip to content

Commit

Permalink
local verify arm
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Feb 27, 2024
1 parent c1a1ab2 commit 4a9e64b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 4a9e64b

Please sign in to comment.