Add steps for creating ArchLinux repository database and add description how to use in the README
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Alexander Schäferdiek 2022-07-11 22:29:51 +02:00
parent 9531f2166f
commit e0bbb8569c
3 changed files with 14 additions and 4 deletions

View file

@ -17,7 +17,9 @@ steps:
- chown -R build:build /home/build - chown -R build:build /home/build
- cd /home/build/_pkg - cd /home/build/_pkg
- sudo -u build makepkg -csf - sudo -u build makepkg -csf
- sudo -u build repo-add repo-aur-myservermanager-com.db.tar.gz *.zst
- cp *.zst /drone/src/_pkg/ - cp *.zst /drone/src/_pkg/
- cp *.tar.gz /drone/src/_pkg/
- name: upload to aur.myservermanager.com - name: upload to aur.myservermanager.com
image: drillster/drone-rsync image: drillster/drone-rsync
environment: environment:
@ -29,10 +31,10 @@ steps:
user: myservermanager-com user: myservermanager-com
key: key:
from_secret: deploy_ssh_key from_secret: deploy_ssh_key
source: ./_pkg/*.zst source: ./_pkg/{*.zst,*.db.tar.gz,*.files.tar.gz}
target: /srv/http/myservermanager.com/htdocs/aur/x86_64/ target: /srv/http/myservermanager.com/htdocs/aur/x86_64/
delete: true delete: true
recursive: true recursive: false
when: when:
branch: branch:
- master - master

View file

@ -23,6 +23,13 @@ be copied inside $HOME or /etc depending on the helper script.
1. Build a `pacman` package for ArchLinux via `makepkg -csi` inside the `dist/` folder (**recommended**). 1. Build a `pacman` package for ArchLinux via `makepkg -csi` inside the `dist/` folder (**recommended**).
2. Alternatively, use `./sync` from the git clone and pick an action which should be self-explaining. 2. Alternatively, use `./sync` from the git clone and pick an action which should be self-explaining.
3. Use the custom provided ArchLinux repository hosted at `aur.myservermanager.com`
```shell
[repo-aur-myservermanager-com]
SigLevel = Never
Server = https://aur.myservermanager.com/$arch
```
## Usage ## Usage

5
_pkg/.gitignore vendored
View file

@ -1,2 +1,3 @@
dotfiles-system-git *
*.zst !PKGBUILD
!.gitignore