~earboxer/musicdir-docs

musicdir-docs/deploying.sh -rwxr-xr-x 604 bytes
df5b3906Zach DeCook deploying: Pull repo and install dependencies as needed 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Deploying
## curl in patch, push changes.
## Ensure pipeline succeeds.
cd mdaports && git pull && cd ..

## Setup
### Have ~/packages directory with appropriate symlinks for different architectures.

## Building packages and APKINDEX

### Build packages that haven't been built yet
find mdaports -name '*APKBUILD' | xargs -I{} sh -c "APKBUILD='{}' abuild -r"
### Remove outdated packages
find mdaports -name '*APKBUILD' | xargs -I{} sh -c "APKBUILD='{}' abuild cleanoldpkg"

## Updating apkbrowser
cd apkbrowser
./update-database.py config.ini ''

doas touch /etc/uwsgi/conf.d/apkbrowser.ini