Skip to content

Commit

Permalink
Merge pull request #49 from 2m/fix/just-commands-2m
Browse files Browse the repository at this point in the history
Add helper just commands
  • Loading branch information
2m authored Oct 24, 2023
2 parents 4302288 + b29ea5c commit f2c3164
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
*.iml
target
12 changes: 12 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -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}} .

0 comments on commit f2c3164

Please sign in to comment.