2020-01-31 21:15:40 +00:00
|
|
|
all: bottin
|
2020-01-26 20:57:27 +00:00
|
|
|
|
2020-01-31 21:15:40 +00:00
|
|
|
bottin: main.go ssha.go util.go acl.go read.go write.go
|
2020-01-26 20:57:27 +00:00
|
|
|
go get -d -v
|
2020-01-31 21:15:40 +00:00
|
|
|
go build -v -o bottin
|
2020-01-26 20:57:27 +00:00
|
|
|
|
2020-01-31 21:15:40 +00:00
|
|
|
bottin.static: main.go ssha.go util.go acl.go read.go write.go
|
2020-01-26 21:30:05 +00:00
|
|
|
go get -d -v
|
2020-01-31 21:15:40 +00:00
|
|
|
CGO_ENABLED=0 GOOS=linux go build -a -v -o bottin.static
|
2020-01-26 21:30:05 +00:00
|
|
|
|
2020-01-31 21:15:40 +00:00
|
|
|
docker: bottin.static
|
|
|
|
docker build -t lxpz/bottin_amd64:$(TAG) .
|
|
|
|
docker push lxpz/bottin_amd64:$(TAG)
|
|
|
|
docker tag lxpz/bottin_amd64:$(TAG) lxpz/bottin_amd64:latest
|
|
|
|
docker push lxpz/bottin_amd64:latest
|