Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
radekg committed Dec 2, 2021
1 parent 01ac62f commit befdd7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1-alpha.1
0.0.1-alpha.2
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.DEFAULT_GOAL := build

.PHONY: clean build docker-image
.PHONY: clean build docker-image git-tag

BINARY ?= ybdb-go-cli
SOURCES = $(shell find . -name '*.go' | grep -v /vendor/)
Expand All @@ -12,7 +12,8 @@ GOARCH ?= amd64
GOOS ?= linux

DOCKER_IMAGE_REPO ?= local/
DOCKER_IMAGE_VERSION ?= 0.0.1
CURRENT_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
TAG_VERSION ?= $(shell cat $(CURRENT_DIR)/.version)

default: build

Expand All @@ -25,7 +26,10 @@ build/$(BINARY): $(SOURCES)
GOOS=$(GOOS) GOARCH=$(GOARCH) CGO_ENABLED=0 go build -o build/$(BINARY) $(BUILD_FLAGS) -ldflags "$(LDFLAGS)" .

docker-image:
docker build -t $(DOCKER_IMAGE_REPO)$(BINARY):${DOCKER_IMAGE_VERSION} .
docker build -t $(DOCKER_IMAGE_REPO)$(BINARY):${TAG_VERSION} .

clean:
@rm -rf build
@rm -rf build

git-tag:
git tag v$(TAG_VERSION)

0 comments on commit befdd7a

Please sign in to comment.