chore: Restructure package directories
parent
68fd19d487
commit
6b42a5ecf0
|
@ -17,7 +17,7 @@ builds:
|
|||
- 7
|
||||
ldflags:
|
||||
- -s -w -X "main.buildVersion={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})"
|
||||
dir: ./cmd/doggo/cli/
|
||||
dir: ./cmd/doggo/
|
||||
|
||||
- binary: doggo-api.bin
|
||||
id: api
|
||||
|
@ -33,7 +33,7 @@ builds:
|
|||
- 7
|
||||
ldflags:
|
||||
- -s -w -X "main.buildVersion={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})"
|
||||
dir: ./cmd/doggo/api/
|
||||
dir: ./cmd/api/
|
||||
|
||||
archives:
|
||||
- format: tar.gz
|
||||
|
|
4
Makefile
4
Makefile
|
@ -7,11 +7,11 @@ VERSION := ${HASH}
|
|||
|
||||
.PHONY: build-cli
|
||||
build-cli:
|
||||
go build -o ${CLI_BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/doggo/cli/
|
||||
go build -o ${CLI_BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/doggo/
|
||||
|
||||
.PHONY: build-api
|
||||
build-api:
|
||||
go build -o ${API_BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/doggo/api/
|
||||
go build -o ${API_BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'" ./cmd/api/
|
||||
|
||||
.PHONY: build
|
||||
build: build-api build-cli
|
||||
|
|
Loading…
Reference in New Issue