Skip to content

Commit b29ea5c

Browse files
committed
Add helper just commands
Makes it easier to run the project while developing.
1 parent 4302288 commit b29ea5c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
*.iml
3+
target

justfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pwd := env_var('PWD')
2+
3+
# fetch base image and build arch-pkgbuild-builder
4+
build:
5+
docker pull martynas/archlinux
6+
docker build -t arch-pkgbuild-builder .
7+
8+
# run a comment on AUR project, like `just run-on-aur ucm-bin pkgbuild`
9+
run-on-aur project command:
10+
mkdir -p target
11+
git -C target/{{project}} pull || git clone https://aur.archlinux.org/{{project}}.git target/{{project}}
12+
docker run --rm -v {{pwd}}/target/{{project}}:/home/build -v /tmp/gh:/github/home arch-pkgbuild-builder {{command}} .

0 commit comments

Comments
 (0)