1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-06 14:52:50 +08:00

fix: 尝试修复部分设备无法启动的问题

This commit is contained in:
涵曦
2025-01-04 15:20:55 +08:00
parent 0797f2ef3f
commit fdc57d1b47
2 changed files with 39 additions and 4 deletions

View File

@@ -79,15 +79,15 @@ jobs:
- name: Test amd64 image
run: |
docker run --rm ${{ env.TEST_TAG }}-linux-amd64 /app/.venv/bin/python3 /app/xiaomusic.py -h
docker run --rm --entrypoint /bin/sh ${{ env.TEST_TAG }}-linux-amd64 -c "/app/.venv/bin/python3 /app/xiaomusic.py -h"
- name: Test arm64 image
run: |
docker run --rm ${{ env.TEST_TAG }}-linux-arm64 /app/.venv/bin/python3 /app/xiaomusic.py -h
docker run --rm --entrypoint /bin/sh ${{ env.TEST_TAG }}-linux-arm64 -c "/app/.venv/bin/python3 /app/xiaomusic.py -h"
- name: Test armv7 image
run: |
docker run --rm ${{ env.TEST_TAG }}-linux-arm-v7 /app/.venv/bin/python3 /app/xiaomusic.py -h
docker run --rm --entrypoint /bin/sh ${{ env.TEST_TAG }}-linux-arm-v7 -c "/app/.venv/bin/python3 /app/xiaomusic.py -h"
- name: Docker Hub Description
if: github.ref == 'refs/heads/main'
@@ -260,3 +260,38 @@ jobs:
echo "type upload ${FILE}"
gh release upload "${RELEASE_NAME}" "${FILE}" --clobber
done
# 上传文件到 gitee
- name: Upload assets to gitee Release main
if: github.ref == 'refs/heads/main'
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: hanxi
gitee_repo: xiaomusic
gitee_token: ${{ secrets.GITEE_TOKEN }}
gitee_tag_name: test
gitee_release_name: Test
gitee_release_body: This release is automatically updated from the main branch.
gitee_target_commitish: main
gitee_upload_retry_times: 3
gitee_files: |
app-amd64.tar.gz
app-arm64.tar.gz
app-arm-v7.tar.gz
- name: Upload assets to gitee Release tag
if: startsWith(github.ref, 'refs/tags/v')
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: hanxi
gitee_repo: xiaomusic
gitee_token: ${{ secrets.GITEE_TOKEN }}
gitee_tag_name: ${{ github.ref_name }}
gitee_release_name: ${{ github.ref_name }}
gitee_release_body: This release is automatically updated from the ${{ github.ref_name }} tag.
gitee_target_commitish: ${{ github.ref_name }}
gitee_upload_retry_times: 3
gitee_files: |
app-amd64.tar.gz
app-arm64.tar.gz
app-arm-v7.tar.gz

View File

@@ -27,4 +27,4 @@ EXPOSE 8090
ENV TZ=Asia/Shanghai
ENV PATH=/app/.venv/bin:$PATH
CMD ["/bin/sh", "-c", "/usr/bin/supervisord -c /etc/supervisor/supervisord.conf && tail -F /app/supervisord.log /app/xiaomusic.log.txt"]
ENTRYPOINT ["/bin/sh", "-c", "/usr/bin/supervisord -c /etc/supervisor/supervisord.conf && tail -F /app/supervisord.log /app/xiaomusic.log.txt"]