From 1599cd13f341ed7b28855923efaf14ab9a9b53a7 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 30 May 2024 20:52:14 -0400 Subject: [PATCH] Release 0.0.1 --- CHANGELOG.md | 18 ++++++++++++++++++ Makefile | 13 +++++++++++++ hack/tag-release.sh | 16 ++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 CHANGELOG.md create mode 100644 Makefile create mode 100755 hack/tag-release.sh diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d625fce --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,18 @@ +# Change Log + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## [Unreleased] - 2024-05-30 + +## [0.0.1] - 2024-05-30 + +### Added + +First version of `korrel8rcli` command. + - REST client, command line access to a remote korrel8r server. See `korrel8rcli --help` + - Web browser API using data from remote korrel8r server, see `korrel8rcli web --help` + - Client packages for 3rd party use, see ./pkg/swagger + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6e95a41 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ + +VERSION=0.0.1 + +all: build test + +build: + go build ./... + +test: + go test ./... + +release: all + hack/tag-release.sh $(VERSION) diff --git a/hack/tag-release.sh b/hack/tag-release.sh new file mode 100755 index 0000000..3bdc7a4 --- /dev/null +++ b/hack/tag-release.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Apply and push a release tag. +set -e +VERSION=$1 +[[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[^[:space:]]+)?$ ]] || { + echo "not a semantic version X.Y.Z: $VERSION" + exit 1 +} +[ "$(git status -s)" = "" ] || { + git status + echo "working directory not clean" + exit 1 +} +set -x +git tag "v$VERSION" -a -m "Release $VERSION" +git push --follow-tags