feat: add ffmpeg to docker

This commit is contained in:
langhuihui
2025-05-16 11:45:37 +08:00
parent bcc7defa97
commit 83bb03be72
2 changed files with 10 additions and 2 deletions

View File

@@ -83,7 +83,10 @@ jobs:
- name: docker build amd64
if: success() && startsWith(github.ref, 'refs/tags/')
run: |
rm -f m7s monibuca_linux # Clean up any previous state
rm -f m7s monibuca_linux ffmpeg admin.zip # Clean up any previous state
curl -L https://download.m7s.live/bin/ffmpeg-x86_64-linux -o ffmpeg
curl -L https://download.m7s.live/bin/admin.zip -o admin.zip
chmod +x ffmpeg
tar -zxvf bin/m7s_v5_linux_amd64.tar.gz
mv m7s monibuca_linux
docker login -u langhuihui -p ${{ secrets.DOCKER_PASSWORD }}
@@ -91,7 +94,10 @@ jobs:
- name: docker build arm64
if: success() && startsWith(github.ref, 'refs/tags/')
run: |
rm -f m7s monibuca_linux # Clean up from amd64 build
rm -f m7s monibuca_linux ffmpeg admin.zip # Clean up from amd64 build
curl -L https://download.m7s.live/bin/ffmpeg-aarch64-linux -o ffmpeg
curl -L https://download.m7s.live/bin/admin.zip -o admin.zip
chmod +x ffmpeg
tar -zxvf bin/m7s_v5_linux_arm64.tar.gz
mv m7s monibuca_linux # Dockerfile expects this name
docker login -u langhuihui -p ${{ secrets.DOCKER_PASSWORD }} # Repeated login for consistency