This docker image is intended to tests PKGBUILDs, by installing dependencies
and running makepkg -f in a clean Arch installation. It is intended to be
used by packagers, both via CI, and on non-ArchLinux environments.
The package can be saved to the current director by adding -e EXPORT_PKG=1,
and the updated .SRCINFO file for the built package with -e EXPORT_SRC=1.
docker run -v $PWD:/pkg -e SYNC_DATABASE=1 whynothugo/makepkgOr export the built package file to the working directory
docker run -e EXPORT_PKG=1 -v $PWD:/pkg whynothugo/makepkgOr export the updated .SRCINFO for the package
docker run -e EXPORT_SRC=1 -v $PWD:/pkg whynothugo/makepkgIf you are running Arch, you can share the mirror list from your host by adding
-v /etc/pacman.d/mirrorlist:/etc/pacman.d/mirrorlist:ro.
Generally, this should be enough:
sudo: required
services:
- docker
script:
- docker run -v $TRAVIS_BUILD_DIR:/pkg whynothugo/makepkgSince GitLab CI uses Docker, it should be trivial to use these images there too.
base-develis pre-installed.- All
dependswill be installed (including AUR packages using paru). - You may pass
SYNC_DATABASE=1to force apacman -Syto refresh the database, since it updates quite frequently. - GPG keys used to verify signatures are auto-fetched.
This repository is licensed under the ISC licence. See LICENCE for details.