diff --git a/.gitignore b/.gitignore index 6bceebb..cdaa90a 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ krusty.sqlite3 *.sqlite3 *.db *.tar.gz +*.minisig diff --git a/makefile b/makefile index 97c755c..dc22d2c 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,5 @@ +GITHASH := $(shell git rev-parse --short HEAD) + build: ./gradlew shadowJar @@ -17,9 +19,10 @@ migrate: sqlite3 app/krusty.db < app/Migrations/create-schema.sql sqlite3 app/krusty.db < app/Migrations/initial-data.sql -GITHASH := $(shell git rev-parse --short HEAD) -# Tar everything that isnt gitignored release: git ls-files -z | xargs -0 tar -czf krusty-imbus_$(GITHASH).tar.gz + minisign -Sm krusty-imbus_$(GITHASH).tar.gz + scp krusty-imbus_$(GITHASH).tar.gz server:/public/krusty/krusty-imbus_$(GITHASH).tar.gz + scp krusty-imbus_$(GITHASH).tar.gz.minisig server:/public/krusty/krusty-imbus_$(GITHASH).tar.gz.minisig -.PHONY: run clean test build +.PHONY: run clean test build dbdump migrate release