aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-10-19 11:05:36 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-10-19 11:05:36 +0530
commit9c2ad91230d72fe6d661450cc78300ea223ae2bc (patch)
tree17bd774b3f972359dfbb46248f085bbf1c6dae98 /Makefile
make it better
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c9def5f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+GO_BUILD_ENV := CGO_ENABLED=0 GOOS=linux GOARCH=amd64
+DOCKER_BUILD=$(shell pwd)/.docker_build
+DOCKER_CMD=$(DOCKER_BUILD)/go-getting-started
+
+$(DOCKER_CMD): clean
+ mkdir -p $(DOCKER_BUILD)
+ $(GO_BUILD_ENV) go build -v -o $(DOCKER_CMD) .
+
+clean:
+ rm -rf $(DOCKER_BUILD)
+
+heroku: $(DOCKER_CMD)
+ heroku container:push web