initial commit
All checks were successful
Release / release-image (push) Successful in 2m41s

This commit is contained in:
2024-10-18 15:44:19 +00:00
commit d3a361e268
4 changed files with 104 additions and 0 deletions

21
run.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
echo 'Build package'
chown -R builder .
sudo -u builder makepkg -sc --needed --noconfirm
echo 'Setup minio alias'
mcli alias set m "http://${MINIO_HOST}:${MINIO_PORT}" \
"$MINIO_ACCESSKEY" "$MINIO_SECRETKEY"
mkdir repo
echo 'Copy repo db from minio'
mcli cp "m/${MINIO_BUCKET}/${REPO_NAME}.db*" repo
mcli cp "m/${MINIO_BUCKET}/${REPO_NAME}.files" repo
echo 'Add pkgs to repo db'
repo-add -n "repo/${REPO_NAME}.db.tar.zst" /build/*.pkg.tar.zst
mv /build/*.pkg.tar.zst repo
echo 'Update repo to minio'
mcli mv repo/* "m/${MINIO_BUCKET}"