Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
Make file versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
msoedov committed Nov 20, 2017
1 parent 74e9462 commit 35bd626
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
GIT_SUMMARY := $(shell git describe --tags --dirty --always)
REPO=msoedov/hacker-slides

default: repo

repo:
@echo $(REPO)
@echo $(REPO):$(GIT_SUMMARY)

build:
@GOOS=linux CGO_ENABLE=0 go build main.go
@docker build -t $(REPO) .
@docker build -t $(REPO):$(GIT_SUMMARY) .

push:
@docker push $(REPO)
@docker push $(REPO):$(GIT_SUMMARY)

0 comments on commit 35bd626

Please sign in to comment.