From e0bbb8569c0539f99c0a46d9faa907df86172288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Mon, 11 Jul 2022 22:29:51 +0200 Subject: [PATCH] Add steps for creating ArchLinux repository database and add description how to use in the README --- .drone.yml | 6 ++++-- README.md | 7 +++++++ _pkg/.gitignore | 5 +++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index bd2632a..d9ce7e7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,7 +17,9 @@ steps: - chown -R build:build /home/build - cd /home/build/_pkg - sudo -u build makepkg -csf + - sudo -u build repo-add repo-aur-myservermanager-com.db.tar.gz *.zst - cp *.zst /drone/src/_pkg/ + - cp *.tar.gz /drone/src/_pkg/ - name: upload to aur.myservermanager.com image: drillster/drone-rsync environment: @@ -29,10 +31,10 @@ steps: user: myservermanager-com 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/ delete: true - recursive: true + recursive: false when: branch: - master diff --git a/README.md b/README.md index 45145fd..db736bd 100644 --- a/README.md +++ b/README.md @@ -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**). 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 diff --git a/_pkg/.gitignore b/_pkg/.gitignore index c8a3ffe..9ecf222 100644 --- a/_pkg/.gitignore +++ b/_pkg/.gitignore @@ -1,2 +1,3 @@ -dotfiles-system-git -*.zst \ No newline at end of file +* +!PKGBUILD +!.gitignore \ No newline at end of file