aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-12-07 00:00:05 +0700
committerShulhan <ms@kilabit.info>2023-12-07 03:51:32 +0700
commit045c2513a96177c38677f13c75639a007a355d57 (patch)
tree6deb440e22dc878f4e74f4d643aec1711f2a6bed
parent4283ebdbf813633e7bedd11f404f8a0489030836 (diff)
downloadawwan-045c2513a96177c38677f13c75639a007a355d57.tar.xz
all: add tasks to release binaries automatically using karajo
The karajo server is live at build.kilabit.info, triggered by github webhook.
-rw-r--r--Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dbde7c7..bfe9447 100644
--- a/Makefile
+++ b/Makefile
@@ -135,11 +135,27 @@ build-all-arm64:
./cmd/awwan/;\
done
+
+## Task to release binaries automatically using karajo at
+## build.kilabit.info.
+
.PHONY: release-sync
release-sync:
- rsync -av --progress ./_bin/dl/ awwan.org:/srv/awwan/dl/
+ sudo chown -R ms:karajo /srv/awwan/
+ sudo chmod -R g+w /srv/awwan/
+ rsync -rtvO --progress ./_bin/dl/ /srv/awwan/dl/
.PHONY: release-tip
release-tip: embed build-all-amd64 build-all-arm64 release-sync
+
+## Task to release binaries manually from local.
+
+.PHONY: release-sync-local
+release-sync-local:
+ rsync -av --progress ./_bin/dl/ awwan.org:/srv/awwan/dl/
+
+.PHONY: release-tip-local
+release-tip-local: embed build-all-amd64 build-all-arm64 release-sync-local
+
#}}}