mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
update Makefile
This commit is contained in:
parent
6a7bcaf5d5
commit
530dff39cf
@ -29,6 +29,13 @@ release:
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 GO111MODULE=on go build -o ${BINARY}.exe -ldflags "-X main.Version=${VERSION}"
|
||||
tar czvf ${BINARY}-win64-${VERSION}.tar.gz ./${BINARY}.exe
|
||||
go clean
|
||||
# Build docker image
|
||||
go clean
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o ${BINARY} -ldflags "-X main.Version=${VERSION}"
|
||||
docker build -t timothyye/godns:${VERSION} .
|
||||
docker tag timothyye/godns:${VERSION} timothyye/godns:latest
|
||||
docker push timothyye/godns:${VERSION}
|
||||
docker push timothyye/godns:latest
|
||||
# Cleans our projects: deletes binaries
|
||||
clean:
|
||||
go clean
|
||||
|
Loading…
x
Reference in New Issue
Block a user