Skip to content

Tool for automating the updating of AUR packages or other git repositories

License

Notifications You must be signed in to change notification settings

CorySanin/aur-deploy

Repository files navigation

aur-deploy

Docker image that automates the updating of AUR packages or other git repositories

Configuration

Use the provided docker-compose file as a guide.

aur-deploy takes environment variables:

Environment Variable Description
CRON Cron expression for how often aur-deploy should run the update routine. Default is 0 * * * *
REPO The address of the git repository to be modified

There are also some configuration files that are provided in /usr/volume/:

/usr/volume/
├── common
│   ├── gitconfig           # .gitconfig file
│   └── ssh                 # .ssh directory
│       ├── id_ed25519
│       └── id_ed25519.pub
└── script
    └── script.sh           # script that updates your PKGBUILD

Note that if the ssh directory is empty, a key will be automatically generated. Just add the public key to your AUR account.

script.sh

This script runs within the repository directory. It should check for an update and make the appropriate changes to the PKGBUILD file. No need to update the .SRCINFO and no need to stage PKGBUILD or .SRCINFO. All other files that aren't staged will be removed, so don't worry about cleaning up.

The script is also responsible for updating checksums. Consider using git diff --exit-code PKGBUILD || updpkgsums at the end of the script. This will only update checksums if a change is detected.

About

Tool for automating the updating of AUR packages or other git repositories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages