Skip to content

Commit

Permalink
add sample feature
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmordasiewicz committed Nov 21, 2024
1 parent ff98313 commit 8fb7c37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cmctl/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"description": "cmctl is a command line tool that can help you manage cert-manager and its resources inside your cluster.",
"id": "cmctl",
"name": "cmctl",
"version": "0.0.1"
"version": "0.0.2"
}
8 changes: 4 additions & 4 deletions src/cmctl/install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
set -e

LATEST_VERSION=$(curl -s "https://api.github.com/repos/cert-manager/cmctl/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
ARCHTYPE=$(dpkg-architecture -q DEB_BUILD_ARCH)

curl -L -o cmctl "https://github.com/cert-manager/cmctl/releases/download/v${LATEST_VERSION}/cmctl_linux_${ARCHTYPE}"
OS=$(uname -s | tr A-Z a-z)
ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
curl -fsSL -o cmctl https://github.com/cert-manager/cmctl/releases/latest/download/cmctl_${OS}_${ARCH}
chmod +x cmctl
install cmctl /usr/local/bin
rm cmctl

0 comments on commit 8fb7c37

Please sign in to comment.