diff options
author | Alex Auvolat <alex@adnab.me> | 2020-01-26 22:30:05 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-01-26 22:30:05 +0100 |
commit | 1be8b6a3d8833a65e051c7936cab662d37bfebc2 (patch) | |
tree | 85f9bcbce9f37ef6a2293218fc4c2adc76b283f7 /Makefile | |
parent | 89e432b06cbcf8c7bc0433eedfac05171fdfeaa2 (diff) | |
download | bottin-1be8b6a3d8833a65e051c7936cab662d37bfebc2.tar.gz bottin-1be8b6a3d8833a65e051c7936cab662d37bfebc2.zip |
Separate build path for static version
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -2,9 +2,13 @@ all: gobottin gobottin: 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 + go build -v -docker: all +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 docker build -t lxpz/gobottin_amd64:$(TAG) . docker push lxpz/gobottin_amd64:$(TAG) docker tag lxpz/gobottin_amd64:$(TAG) lxpz/gobottin_amd64:latest |