Skip to content

Commit f2c3164

Browse files
authored
Merge pull request #49 from 2m/fix/just-commands-2m
Add helper just commands
2 parents 4302288 + b29ea5c commit f2c3164

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
22
*.iml
3+
target

justfile

Lines changed: 12 additions & 0 deletions
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)