aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIļja Pavļikhin <owl@ow1.in>2023-08-02 01:36:27 +0300
committerIļja Pavļikhin <owl@ow1.in>2023-08-02 01:36:27 +0300
commita5f6c600357d4000b4a904e36cac1256ca3ac01d (patch)
tree25651fe521d1014faef6fbfcaacb9377c5be6835 /Makefile
parent131f6eba38734212e039845b6cd9deabbc9d978d (diff)
Add building in fcking docker environment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 048987d..5869f9e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
.PHONY: all test
COMMIT := $(shell git rev-parse --short HEAD)
+TD_COMMIT := "8517026415e75a8eec567774072cbbbbb52376c1"
+VERSION := "v1.7.1"
+MAKEOPTS := "-j4"
all:
go build -ldflags "-X main.commit=${COMMIT}" -o telegabber
@@ -10,3 +13,6 @@ test:
lint:
$(GOPATH)/bin/golint ./...
+
+build_indocker:
+ docker build --build-arg "TD_COMMIT=${TD_COMMIT}" --build-arg "VERSION=${VERSION}" --build-arg "MAKEOPTS=${MAKEOPTS}" --output=release --target binaries .