This repository has been archived by the owner on Sep 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from msoedov/icon
Favicon and cleanup
- Loading branch information
Showing
6 changed files
with
77 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
GIT_SUMMARY := $(shell git describe --tags --dirty --always) | ||
REPO=msoedov/hacker-slides | ||
|
||
DOCKER_IMAGE := $(REPO):$(GIT_SUMMARY) | ||
default: repo | ||
|
||
repo: | ||
@echo $(REPO):$(GIT_SUMMARY) | ||
@echo $(DOCKER_IMAGE) | ||
|
||
build: | ||
@GOOS=linux CGO_ENABLE=0 go build main.go | ||
@docker build -t $(REPO):$(GIT_SUMMARY) . | ||
@docker tag $(REPO):$(GIT_SUMMARY) $(REPO) | ||
@docker build -t $(DOCKER_IMAGE) . | ||
@docker tag $(DOCKER_IMAGE) $(REPO) | ||
|
||
push: | ||
@docker push $(REPO):$(GIT_SUMMARY) | ||
@docker push $(DOCKER_IMAGE) | ||
@docker push $(REPO) | ||
|
||
r: | ||
@docker run -it -p 8080:8080 $(REPO):$(GIT_SUMMARY) | ||
@docker run -it -p 8080:8080 $(DOCKER_IMAGE) | ||
|
||
release: | ||
@build | ||
@push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters