-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from 2m/fix/just-commands-2m
Add helper just commands
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
*.iml | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} . |