aboutsummaryrefslogblamecommitdiff
path: root/Makefile
blob: 13fed94ab774fd56c9db0a4d6375a7de41ffe69a (plain) (tree)
1
2
3
4
5
6
7
8
9
           
 
                                                       
                    
                             
 
                                                              
                    
                                                                
 




                                                                    
all: bottin

bottin: main.go ssha.go util.go acl.go read.go write.go
	go get -d -v
	go build -v -o bottin

bottin.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 bottin.static

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