mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 16:10:03 +01:00
Add clean step
This commit is contained in:
parent
d5fb983acc
commit
158ecaa965
2 changed files with 4 additions and 3 deletions
5
Makefile
5
Makefile
|
|
@ -1,6 +1,9 @@
|
||||||
DOCKER := docker-compose run dbmate
|
DOCKER := docker-compose run dbmate
|
||||||
|
|
||||||
all: container lint test build
|
all: clean container lint test build
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf dist
|
||||||
|
|
||||||
container:
|
container:
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
|
|
||||||
2
build.sh
2
build.sh
|
|
@ -6,8 +6,6 @@ set -ex
|
||||||
|
|
||||||
BUILD_FLAGS="-ldflags -s"
|
BUILD_FLAGS="-ldflags -s"
|
||||||
|
|
||||||
rm -rf dist
|
|
||||||
|
|
||||||
GOOS=linux GOARCH=386 go build $BUILD_FLAGS \
|
GOOS=linux GOARCH=386 go build $BUILD_FLAGS \
|
||||||
-o dist/dbmate-linux-i386
|
-o dist/dbmate-linux-i386
|
||||||
GOOS=linux GOARCH=amd64 go build $BUILD_FLAGS \
|
GOOS=linux GOARCH=amd64 go build $BUILD_FLAGS \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue