Change music directory check to verify content instead of mount point
Some checks failed
build-and-deploy / build (push) Successful in 19s
build-and-deploy / deploy (push) Failing after 1s

This commit is contained in:
2025-08-04 14:28:50 -06:00
parent bd59e958f1
commit c2705c239b

View File

@@ -36,19 +36,19 @@ jobs:
- name: Login to registry - name: Login to registry
run: docker login gitea.nucleoriofrio.com -u nucleo000 -p 7bc7b2fcd283bd6a251bef3ede368b7f897c919d run: docker login gitea.nucleoriofrio.com -u nucleo000 -p 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
- name: Check music directory mount - name: Check music directory
run: | run: |
echo "Checking if music directory is mounted..." echo "Checking if music directory exists and has content..."
if [ -d "/srv/repodructor/musica" ] && mountpoint -q /srv/repodructor/musica; then if [ -d "/srv/repodructor/musica" ] && [ "$(ls -A /srv/repodructor/musica 2>/dev/null)" ]; then
echo "✅ Music directory is properly mounted" echo "✅ Music directory found with content"
echo "Mount info:" echo "Files count: $(ls -1 /srv/repodructor/musica | wc -l)"
mount | grep "/srv/repodructor/musica" echo "Sample files:"
ls /srv/repodructor/musica | head -3
else else
echo "❌ ERROR: Music directory is not mounted!" echo "❌ ERROR: Music directory not found or empty!"
echo "" echo ""
echo "Please mount your music directory first:" echo "Please ensure your music directory exists with content:"
echo " sudo mkdir -p /srv/repodructor/musica" echo " Directory: /srv/repodructor/musica"
echo " sudo mount -t cifs //YOUR_NAS_SERVER/path/to/music /srv/repodructor/musica -o username=YOUR_USER,password=YOUR_PASS,ro"
echo "" echo ""
echo "Or update docker-compose.yml to point to your music directory." echo "Or update docker-compose.yml to point to your music directory."
exit 1 exit 1