summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2026-02-04 04:37:29 +0700
committerShulhan <m.shulhan@gmail.com>2026-02-04 04:38:08 +0700
commitc0ec2824f92e08a7b55c2d8e398df9c73ea5fb0b (patch)
treea4874a3cf30b971f153fafcf0dc9a748c6b3ccf6
parentde6bdcea1aa288b5fb3f67d2bc50520455304b75 (diff)
downloadgolang-id-web-c0ec2824f92e08a7b55c2d8e398df9c73ea5fb0b.tar.xz
make: tambah task untuk deploy dengan webhook
Setiap kali push akan mentrigger webhook di https://build.kilabit.info/karajo/app/#job_webhook_golang-id-web .
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2865d39..2f7e4e9 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,13 @@ deploy-build: embed
deploy-remote: deploy-build
rsync --progress ./$(PROGRAM_NAME) golang-id.org:/data/app/bin/
+.PHONY: on-webhook
+on-webhook: CGO_ENABLED=0
+on-webhook: GOOS=linux
+on-webhook: GOARCH=amd64
+on-webhook: build
+ sudo rsync --progress ./$(PROGRAM_NAME) /data/app/bin/$(PROGRAM_NAME)
+
##---- Local installation.