From 4a9e64b833e01e6ea332a03482ab39e1163a7e41 Mon Sep 17 00:00:00 2001 From: clux Date: Tue, 27 Feb 2024 19:01:43 +0000 Subject: [PATCH] local verify arm Signed-off-by: clux --- Dockerfile | 4 ++-- deployment.yaml | 2 +- justfile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7619952..1dd43d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/deployment.yaml b/deployment.yaml index a59c5f8..2c7cb45 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -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: diff --git a/justfile b/justfile index d232b86..4bdf75a 100644 --- a/justfile +++ b/justfile @@ -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