Skip to content

Commit

Permalink
Add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
iximiuz committed Sep 29, 2023
1 parent 08000fe commit 4681e36
Showing 4 changed files with 64 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
project_name: kexp
before:
hooks:
- make front-build
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -24,6 +24,10 @@ front-run-dev:
front-lint-fix:
cd ${CUR_DIR}/ui && npm run lint-fix

.PHONY: front-build
front-build:
cd ${CUR_DIR}/ui && npm run build

.PHONY: build
build:
cd ${CUR_DIR}/ui && npm run build
@@ -47,3 +51,11 @@ docker-build:
.PHONY: docker-push
docker-push: docker-build
docker push ghcr.io/iximiuz/kexp:latest

.PHONY: release
release:
goreleaser --clean

.PHONY: release-snapshot
release-snapshot:
goreleaser release --snapshot --clean
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# k'exp - Kubernetes Explorer

Understand Kubernetes - the visual way.
Not yet another attempt to manage production clusters in the browser.

k'exp is for:

- Learning and exploring Kubernetes capabilities
- Application development (object graph "presets" for every app)
- Controller and operator development (dynamic object graph)
- [coming soon] Postman-like client for Kubernetes API


## How to run

It's a single Go binary with embedded UI.
If you already have `kubectl` configured to access your cluster(s),
you can run `kexp` too - it uses the same `KUBECONFIG` discovery logic.

```sh
```


## Development

Server:
@@ -17,8 +38,8 @@ npm run dev
```

```sh
make back-run-dev
make front-run-dev
make back-run-dev

open localhost:5173
```
Empty file added ui/dist/.keep
Empty file.

0 comments on commit 4681e36

Please sign in to comment.