aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-01-26 21:57:27 +0100
committerAlex Auvolat <alex@adnab.me>2020-01-26 21:57:27 +0100
commit15745b1b390792d5defbc73788adadf1c0656fbe (patch)
tree81ab0d64f47ef3591d1e7ce56b097d0b03b994a1 /Makefile
parent97f5effe5506a8cbfbbb3fbe176929c188c361b3 (diff)
downloadbottin-15745b1b390792d5defbc73788adadf1c0656fbe.tar.gz
bottin-15745b1b390792d5defbc73788adadf1c0656fbe.zip
Add dockerfile, makefile and example nomad configuration file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7ff12b2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+all: gobottin
+
+gobottin: main.go ssha.go util.go acl.go
+ go get -d -v
+ CGO_ENABLED=0 GOOS=linux go build -a -v
+
+docker: all
+ 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