Skip to content

Commit

Permalink
added backkups to the release tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Rowe committed Apr 8, 2018
1 parent 8963535 commit 884e226
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
BIN := databank-dbloader
MAIN := cmd/databank-dbloader/main.go
RELEASE_DIR := release/
RCDB := baseball_databank_2017_a070569.sqlite3
TAG := 0.4.2
RCDB := baseball_databank_2017_aa57ec7.sqlite3
TAG := 2017.3
LINUX_TGZ := baseball-stats-db-$(TAG)-linux-amd64.tgz
MACOS_TGZ := baseball-stats-db-$(TAG)-macos-amd64.tgz

Expand All @@ -25,12 +25,12 @@ release:

pkg-release-linux: release
rm release/*
tar -zcvf $(RELEASE_DIR)$(LINUX_TGZ) $(RCDB) ./bin
tar -zcvf $(RELEASE_DIR)$(LINUX_TGZ) $(RCDB) ./bin ./backups
sha256sum $(RELEASE_DIR)$(LINUX_TGZ) >./$(RELEASE_DIR)$(LINUX_TGZ).checksum

pkg-release-macos: release
rm release/*
tar -zcvf $(RELEASE_DIR)$(MACOS_TGZ) $(RCDB) ./bin
tar -zcvf $(RELEASE_DIR)$(MACOS_TGZ) $(RCDB) ./bin ./backups
shasum -a 256 $(RELEASE_DIR)$(MACOS_TGZ) >./$(RELEASE_DIR)$(MACOS_TGZ).checksum

release-linux: build pkg-release-linux
Expand Down

0 comments on commit 884e226

Please sign in to comment.