Browse Source

Make build

Alex Myasoedov 7 years ago
parent
commit
bd64005c48
3 changed files with 15 additions and 0 deletions
  1. 4 0
      .dockerignore
  2. 1 0
      .gitignore
  3. 10 0
      Makefile

+ 4 - 0
.dockerignore

@@ -0,0 +1,4 @@
+.git/
+.idea/
+*.swp
+

+ 1 - 0
.gitignore

@@ -23,3 +23,4 @@ _testmain.go
 bin/
 src/
 slides/
+main

+ 10 - 0
Makefile

@@ -0,0 +1,10 @@
+REPO=msoedov/hacker-slides
+
+
+build:
+	@GOOS=linux CGO_ENABLE=0 go build main.go
+	@docker build -t $(REPO) .
+
+push:
+	@docker push $(REPO)
+