Skip to content

Commit

Permalink
0.1.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tjungblu committed Feb 23, 2023
1 parent bcaa6f7 commit d5a078e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# go option
GO ?= go
TAGS :=
TESTS := ./...
TESTFLAGS :=
LDFLAGS :=
GOFLAGS :=
BINARY := octosql-plugin-etcdsnapshot
VERSION := v0.1.1
OCTOSQLPATH := ${HOME}/.octosql/plugins/etcdsnapshot/octosql-plugin-etcdsnapshot/${VERSION}/

# Required for globs to work correctly
SHELL=/bin/bash

.DEFAULT_GOAL := build

.PHONY: release
release:
@echo
@echo "==> Preparing the release $(VERSION) <=="
go mod tidy
git tag ${VERSION}

.PHONY: build
build:
$(GO) build -o ${BINARY} main.go

.PHONY: install
install: build
mkdir -p ${OCTOSQLPATH}
cp ${BINARY} ${OCTOSQLPATH}
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,13 @@ $ octosql "SELECT namespace, SUM(valueSize) AS S from etcd.snapshot GROUP BY nam
Try it out with a snapshot file named "etcd.snapshot" in the current folder:
> octosql "SELECT * FROM etcd.snapshot"
### Build locally

In order to get a build directly from the source, you can leverage the makefile to build:

> make build
and install it directly in the plugin directory with:

> make install
2 changes: 1 addition & 1 deletion octosql_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"binary_download_url_pattern": "https://github.com/tjungblu/octosql-plugin-etcdsnapshot/releases/download/{{version}}/octosql-plugin-etcdsnapshot_{{version}}_{{os}}_{{arch}}.tar.gz",
"versions": [
{
"number": "0.1.0"
"number": "0.1.1"
}
]
}

0 comments on commit d5a078e

Please sign in to comment.