diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a70a6832..f4021e62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,4 +33,4 @@ jobs: version: latest args: release --snapshot --rm-dist - name: Test Binary is Runnable - run: "dist/helm-dashboard_linux_amd64_v1/helm-dashboard --help" \ No newline at end of file + run: "dist/helm-dashboard_linux_amd64_v1/helm-dashboard --help" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 67555719..bd87b6d7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,3 +26,5 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Test Binary Versions + run: "dist/helm-dashboard_linux_amd64_v1/helm-dashboard --help" diff --git a/.goreleaser.yml b/.goreleaser.yml index cccf3a21..dff891a9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -3,7 +3,7 @@ builds: - main: ./main.go binary: helm-dashboard - ldflags: -s -w -X github.com/komodorio/helm-dashboard/main.version={{.Version}} -X github.com/komodorio/helm-dashboard/main.commit={{.Commit}} + ldflags: -s -w -X main.version={{.Version}} -X main.version={{.Version}} -X main.version={{.Version}} -X main.date={{.Date}} goos: - windows - darwin diff --git a/README.md b/README.md index 493147f5..0fb9b24e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,27 @@ A simplified way of working with Helm. +## Local Testing + +Until we make our repo public, we have to use a custom way to install the plugin. + +To install, checkout the source code and run from source dir: +```shell +helm plugin install . +``` + +There is a need to build binary for plugin to function, run: +```shell +go build -o bin/dashboard . +``` + +Local install of plugin just creates a symlink, so making the changes and rebuilding the binary would not require reinstall of a plugin. + +To uninstall, run: +```shell +helm plugin uninstall dashboard +``` + ## Roadmap diff --git a/main.go b/main.go index 7d6e6470..0c4e0950 100644 --- a/main.go +++ b/main.go @@ -10,11 +10,12 @@ import ( var ( version = "dev" - commit = "dev" + commit = "none" + date = "unknown" ) func main() { - log.Infof("Helm Dashboard by Komodor, version %s (%s)", version, commit) + log.Infof("Helm Dashboard by Komodor, version %s (%s @ %s)", version, commit, date) if len(os.Args) > 1 { os.Exit(0)