aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2025-03-06 22:30:27 -0800
committerMax Resnick <max@ofmax.li>2025-03-06 22:30:27 -0800
commita8df88e693c33fd3eb72948e1f2454ec9d00dd9f (patch)
treeadba040acad33c1b4146bcff0130be64f570b199
parent1b0195d4e3d3060afde056bb3c4c4a16daccd2c5 (diff)
downloadunbound-adblock-config-a8df88e693c33fd3eb72948e1f2454ec9d00dd9f.tar.gz
feat: add local build target
-rw-r--r--justfile6
1 files changed, 5 insertions, 1 deletions
diff --git a/justfile b/justfile
index d16e800..5b95c74 100644
--- a/justfile
+++ b/justfile
@@ -41,7 +41,7 @@ new-ver part="latest": builddir
git-push tag:
new_ver=$(cat {{ NEW_VERSION }}); \
git push origin master; \
- git push origin {{ tag }}
+ git push origin {{ tag }}
git-build-release:
#!/usr/bin/env bash
@@ -78,6 +78,10 @@ release part: test builddir (docker-build part) git-build-release git-tag-releas
build version: test builddir
CGO_ENABLED=0 go build -a -ldflags "-s -X 'main.Version={{version}}'" -o {{ BUILDDIR }}/bin/unbound-ads main.go
+local-build: new-ver
+ new_ver=$(cat {{ NEW_VERSION }}); \
+ just build $new_ver
+
push:
just docker-push; \
just git-push