summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 5f9f08b..4845622 100644
--- a/Makefile
+++ b/Makefile
@@ -5,23 +5,32 @@ PACKAGES := $(shell go list -f {{.Dir}} ./...)
GOFILES := $(addsuffix /*.go,$(PACKAGES))
GOFILES := $(wildcard $(GOFILES))
-.PHONY: clean release docker docker-latest
+.PHONY: clean release release-ci release-manual docker docker-latest README.md
-# go get -u github.com/github/hub
-docker-latest: docker
- docker tag quay.io/sergey_grebenshchikov/$(APP):v$(VERSION) quay.io/sergey_grebenshchikov/$(APP):latest
- docker push quay.io/sergey_grebenshchikov/$(APP):latest
clean:
rm -rf binaries/
rm -rf release/
-release: zip
+release-ci: README.md zip
+
+release:
+ git tag "$(VERSION)"
+ git push origin "$(VERSION)"
+
+# go get -u github.com/github/hub
+release-manual: README.md zip
git push
- hub release delete $(VERSION) || true
hub release create $(VERSION) -m "$(VERSION)" -a release/$(APP)_$(VERSION)_osx_x86_64.zip -a release/$(APP)_$(VERSION)_windows_x86_64.zip -a release/$(APP)_$(VERSION)_linux_x86_64.zip -a release/$(APP)_$(VERSION)_osx_x86_32.zip -a release/$(APP)_$(VERSION)_windows_x86_32.zip -a release/$(APP)_$(VERSION)_linux_x86_32.zip -a release/$(APP)_$(VERSION)_linux_arm64.zip
+README.md:
+ sed "s/\$${VERSION}/$(VERSION)/g" README.template.md > README.md
+
+docker-latest: docker
+ docker tag quay.io/sergey_grebenshchikov/$(APP):v$(VERSION) quay.io/sergey_grebenshchikov/$(APP):latest
+ docker push quay.io/sergey_grebenshchikov/$(APP):latest
+
docker: binaries/linux_x86_64/$(APP)
docker build -t quay.io/sergey_grebenshchikov/$(APP):v$(VERSION) .
docker push quay.io/sergey_grebenshchikov/$(APP):v$(VERSION)