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 3e0db10 commit 4366fe0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cmctl/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"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"
}
9 changes: 9 additions & 0 deletions src/cmctl/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +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}"
install cmctl /usr/local/bin
rm cmctl

0 comments on commit 4366fe0

Please sign in to comment.