2020-01-26 20:57:27 +00:00
|
|
|
all: gobottin
|
|
|
|
|
2020-01-26 21:22:38 +00:00
|
|
|
gobottin: 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-26 21:30:05 +00:00
|
|
|
go build -v
|
2020-01-26 20:57:27 +00:00
|
|
|
|
2020-01-26 21:30:05 +00:00
|
|
|
gobottin.static: main.go ssha.go util.go acl.go read.go write.go
|
|
|
|
go get -d -v
|
|
|
|
CGO_ENABLED=0 GOOS=linux go build -a -v -o gobottin.static
|
|
|
|
|
|
|
|
docker: gobottin.static
|
2020-01-26 20:57:27 +00:00
|
|
|
docker build -t lxpz/gobottin_amd64:$(TAG) .
|
|
|
|
docker push lxpz/gobottin_amd64:$(TAG)
|
|
|
|
docker tag lxpz/gobottin_amd64:$(TAG) lxpz/gobottin_amd64:latest
|
|
|
|
docker push lxpz/gobottin_amd64:latest
|