Make build
This commit is contained in:
parent
be7a85765c
commit
bd64005c48
3 changed files with 15 additions and 0 deletions
4
.dockerignore
Normal file
4
.dockerignore
Normal file
|
@ -0,0 +1,4 @@
|
|||
.git/
|
||||
.idea/
|
||||
*.swp
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -23,3 +23,4 @@ _testmain.go
|
|||
bin/
|
||||
src/
|
||||
slides/
|
||||
main
|
||||
|
|
10
Makefile
Normal file
10
Makefile
Normal file
|
@ -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)
|
||||
|
Loading…
Reference in a new issue