mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 16:10:03 +01:00
Create slimmer go binaries
This commit is contained in:
parent
5b84f2b821
commit
08dd47d954
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
|
@ -1,4 +1,5 @@
|
||||||
DC := docker-compose
|
DC := docker-compose
|
||||||
|
BUILD_FLAGS := -ldflags '-s'
|
||||||
|
|
||||||
all: clean container lint test build
|
all: clean container lint test build
|
||||||
|
|
||||||
|
|
@ -17,5 +18,5 @@ test:
|
||||||
$(DC) run dbmate go test -v
|
$(DC) run dbmate go test -v
|
||||||
|
|
||||||
build: clean
|
build: clean
|
||||||
$(DC) run -e GOARCH=386 dbmate go build -o dist/dbmate-linux-i386
|
$(DC) run -e GOARCH=386 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-i386
|
||||||
$(DC) run -e GOARCH=amd64 dbmate go build -o dist/dbmate-linux-amd64
|
$(DC) run -e GOARCH=amd64 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-amd64
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue