Browse Source

docs(release): Update docs to build for arm for bitwarden-cli (#6312)

Co-authored-by: Gergely Bräutigam <gergely.brautigam@sap.com>
Senk0 1 month ago
parent
commit
480fd028fa
1 changed files with 10 additions and 4 deletions
  1. 10 4
      docs/examples/bitwarden.md

+ 10 - 4
docs/examples/bitwarden.md

@@ -22,18 +22,24 @@ When you create a new external-secret object, the External Secrets webhook provi
 
 * Bitwarden account (it also works with Vaultwarden!)
 * A Kubernetes secret which contains your Bitwarden credentials
-* A Docker image running the Bitwarden CLI. You could use `ghcr.io/charlesthomas/bitwarden-cli:2023.12.1` or build your own.
+* A Docker image running the Bitwarden CLI. You could use `ghcr.io/charlesthomas/bitwarden-cli:2026.3.0` or build your own.
 
 Here is an example of a Dockerfile used to build the image:
 ```dockerfile
 FROM debian:sid
 
-ENV BW_CLI_VERSION=2023.12.1
+ARG BW_CLI_VERSION=2025.12.1
+ARG TARGETARCH
 
 RUN apt update && \
     apt install -y wget unzip && \
-    wget https://github.com/bitwarden/clients/releases/download/cli-v${BW_CLI_VERSION}/bw-linux-${BW_CLI_VERSION}.zip && \
-    unzip bw-linux-${BW_CLI_VERSION}.zip && \
+    if [ "$TARGETARCH" = "arm64" ]; then \
+      BW_ARCH="-arm64"; \
+    else \
+      BW_ARCH=""; \
+    fi && \
+    wget https://github.com/bitwarden/clients/releases/download/cli-v${BW_CLI_VERSION}/bw-oss-linux${BW_ARCH}-${BW_CLI_VERSION}.zip && \
+    unzip bw-oss-linux${BW_ARCH}-${BW_CLI_VERSION}.zip && \
     chmod +x bw && \
     mv bw /usr/local/bin/bw && \
     rm -rfv *.zip