Skip to content
Snippets Groups Projects
Commit fbaabbdc authored by Recolic's avatar Recolic :house_with_garden:
Browse files

auto build

parent 37fd2447
No related branches found
No related tags found
No related merge requests found
Pipeline #925 canceled with stages
in 23 seconds
......@@ -6,23 +6,29 @@ Create your own mirror site, to auto-build your favorite AUR packages and free y
## Deploy
1. Build docker image
```
cd docker-pikaur
docker build -t your-name/pikaur .
```
### Use my docker image
2. Put this directory to your server. Assume you're placing this directory to `/srv/my-mirror-site`
1. Put this repo to your server. Assume you're placing this directory to `/srv/my-mirror-site`
3. Modify the `build_outdir` and `repo_name` variable in aur-sync.sh.
2. Modify the `build_outdir` and `repo_name` variable in aur-sync.sh.
You should know how to publish the output directory with your web server.
4. Add a crontab line and enjoy!
3. Add a crontab line and enjoy!
```
# Trigger recolic-aur rebuild twice a month at 6 AM UTC+8, means 22:00 UTC.
0 22 2,17 * * cd /srv/mirrors && nohup ./aur-sync.sh >> /var/log/aursync.log 2>&1 & disown
```
### Build your own docker image
1. Build docker image
```
cd docker-pikaur
docker build -t your-name/pikaur .
```
2. Move `your-name/pikaur` to your server, modify `aur-sync.sh` manually, and continue following `Use my docker image` guide.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment