diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-02-08 22:09:18 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-02-08 22:09:18 +0100 |
| commit | bba6c1d8736573eb0526c4d27d9a4f9cd634c66e (patch) | |
| tree | 0fc96ed71f436112a80ae348c6bd21b3c421c3b1 /Makefile | |
| parent | 4b8569d2d79b40c73ced3deca91733a9fa1d835f (diff) | |
Optionally use file to allow local signing
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -6,10 +6,9 @@ deploy_host := deploy@conchos.unlimited.pizza deploy_path := /srv/http/build.r.bdr.sh/$(app_name) define sign_and_deploy - sha256sum $(1) > $(1).sha256 - echo "$MINISIGN_PASSWORD" | minisign -Sm $(1) - rsync -avz $(1) $(DEPLOY_HOST):$(DEPLOY_PATH) - rsync -avz $(1).minisig $(DEPLOY_HOST):$(DEPLOY_PATH) + @./scripts/sign.sh "$(1)" "$(channel)" "$(architecture)" + rsync -avz $(1) $(deploy_host):$(deploy_path) + rsync -avz $(1).minisig $(deploy_host):$(deploy_path) endef default: build @@ -50,7 +49,7 @@ ifeq ($(findstring linux,$(target)),linux) @$(eval filename := $(app_name)-$(target)-$(channel)) cargo deb --profile $(profile) --target $(target) mv target/$(target)/debian/*.deb $(filename).deb - @$(call checksum_and_deploy,$(filename).deb) + @$(call sign_and_deploy,$(filename).deb) endif rpm: build @@ -58,13 +57,13 @@ ifeq ($(findstring linux,$(target)),linux) @$(eval filename := $(app_name)-$(target)-$(channel)) cargo generate-rpm --profile $(profile) --target $(target) mv target/$(target)/generate-rpm/*.rpm $(filename).rpm - @$(call checksum_and_deploy,$(filename).rpm) + @$(call sign_and_deploy,$(filename).rpm) endif tar: build @$(eval filename := $(app_name)-$(target)-$(channel)) tar -czvf $(filename).tar.gz -C target/$(target)/$(profile)/ $(app_name) - @$(call checksum_and_deploy,$(filename).tar.gz) + @$(call sign_and_deploy,$(filename).tar.gz) package: $(architectures) |