From 7a852607e6d7e7f32ee9571fbd35103785a17703 Mon Sep 17 00:00:00 2001 From: Bill Date: Sun, 30 Nov 2025 18:29:31 -0500 Subject: [PATCH] fix(ci): use curl to install uv for Gitea compatibility --- .gitea/workflows/release.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 066124c..5a1fe65 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -12,19 +12,22 @@ jobs: - uses: actions/checkout@v4 - name: Install uv - uses: astral-sh/setup-uv@v4 + run: curl -LsSf https://astral.sh/uv/install.sh | sh + + - name: Add uv to PATH + run: echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Set up Python - run: uv python install 3.12 + run: $HOME/.local/bin/uv python install 3.12 - name: Install dependencies - run: uv sync + run: $HOME/.local/bin/uv sync - name: Install FFmpeg run: sudo apt-get update && sudo apt-get install -y ffmpeg - name: Run tests - run: uv run pytest tests/ -v --ignore=tests/test_integration.py + run: $HOME/.local/bin/uv run pytest tests/ -v --ignore=tests/test_integration.py build: needs: test @@ -32,18 +35,14 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Extract version from tag id: version run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - name: Build Docker image - uses: docker/build-push-action@v6 - with: - context: . - push: false - tags: | - ffmpeg-worker:${{ steps.version.outputs.VERSION }} - ffmpeg-worker:latest + run: | + docker build -t ffmpeg-worker:${{ steps.version.outputs.VERSION }} . + docker tag ffmpeg-worker:${{ steps.version.outputs.VERSION }} ffmpeg-worker:latest + + - name: List images + run: docker images | grep ffmpeg-worker