From a8df88e693c33fd3eb72948e1f2454ec9d00dd9f Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Thu, 6 Mar 2025 22:30:27 -0800 Subject: feat: add local build target --- justfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3