Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release #7

Merged
merged 2 commits into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: goreleaser

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 14 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
project_name: karmor

builds:
- binary: karmor
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags: -w -s -X github.com/kubearmor/kubearmor-client/version.BuildDate={{.Date}} -X github.com/kubearmor/kubearmor-client/version.GitSummary={{.Version}}
env:
- CGO_ENABLED=0
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CURDIR=$(shell pwd)
INSTALLDIR=$(shell go env GOPATH)/bin/

ifeq (,$(shell which govvv))
$(shell go install github.com/ahmetb/govvv@latest)
Expand All @@ -13,4 +14,8 @@ build:
go mod tidy
CGO_ENABLED=0 go build \
-ldflags "-w -s ${GIT_INFO}" \
-o karmor
-o karmor

.PHONY: install
install: build
install -m 0755 karmor $(DESTDIR)$(INSTALLDIR)
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
# KubeArmor-Client
# kArmor

**kArmor** is a CLI client to help manage [KubeArmor](github.com/kubearmor/KubeArmor)

KubeArmor is a container-aware runtime security enforcement system that
restricts the behavior (such as process execution, file access, and networking
operation) of containers at the system level.

## Installation

```
curl -sfL https://github.com/raw/kubearmor/kubearmor-client/main/install.sh | sh
```

To build and install, clone the repository and
```
make install
```

## Usage

```
CLI Utility to help manage KubeArmor

Usage:
karmor [command]

Available Commands:
completion generate the autocompletion script for the specified shell
get Display specified resources
help Help about any command
install Install KubeArmor in a Kubernetes Cluster
log Observe Logs from KubeArmor
uninstall Uninstall KubeArmor from a Kubernetes Cluster
version Display version information

Flags:
-h, --help help for karmor

Use "karmor [command] --help" for more information about a command.
```
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var rootCmd = &cobra.Command{
}
return nil
},
Use: "kubearmor",
Use: "karmor",
Short: "A CLI Utility to help manage KubeArmor",
Long: `CLI Utility to help manage KubeArmor
Expand Down
Loading