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