From b29ea5c6eee1350a824b179db8c36f97dbf0ebcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Mickevi=C4=8Dius?= Date: Tue, 24 Oct 2023 23:20:58 +0300 Subject: [PATCH] Add helper just commands Makes it easier to run the project while developing. --- .gitignore | 1 + justfile | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 justfile diff --git a/.gitignore b/.gitignore index c38fa4e..5231862 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea *.iml +target diff --git a/justfile b/justfile new file mode 100644 index 0000000..982eb5f --- /dev/null +++ b/justfile @@ -0,0 +1,12 @@ +pwd := env_var('PWD') + +# fetch base image and build arch-pkgbuild-builder +build: + docker pull martynas/archlinux + docker build -t arch-pkgbuild-builder . + +# run a comment on AUR project, like `just run-on-aur ucm-bin pkgbuild` +run-on-aur project command: + mkdir -p target + git -C target/{{project}} pull || git clone https://aur.archlinux.org/{{project}}.git target/{{project}} + docker run --rm -v {{pwd}}/target/{{project}}:/home/build -v /tmp/gh:/github/home arch-pkgbuild-builder {{command}} .