Skip to content

Commit cd0fcd8

Browse files
committed
fix docs + build version
1 parent c2a30b2 commit cd0fcd8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ IMG ?= flanksource/canary-checker:$(TAG)
44
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
55
CRD_OPTIONS ?= ""
66
NAME=canary-checker
7+
78
TAG=$(shell git describe --tags --long)$(shell date +"%H%M%S")
89

10+
ifeq ($(VERSION),)
11+
VERSION=$(shell git describe --tags --long)-$(shell date +"%Y%m%d%H%M%S")
12+
endif
13+
914
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
1015
ifeq (,$(shell go env GOBIN))
1116
GOBIN=$(shell go env GOPATH)/bin
@@ -89,7 +94,7 @@ serve-docs:
8994

9095
.PHONY: build-api-docs
9196
build-api-docs:
92-
go run main.go docs api pkg/api.go > docs/reference.md
97+
go run main.go docs api api/v1/checks.go > docs/reference.md
9398
mkdir -p docs/cli
9499
go run main.go docs cli "docs/cli"
95100

0 commit comments

Comments
 (0)