fix(ci): skip docker if unavailable, no latest tag for prereleases
All checks were successful
Test and Build / test (push) Successful in 1m33s
Test and Build / build (push) Successful in 8s

Gitea: Skip docker build gracefully if docker command not available
GitHub: Only tag as latest for stable releases (not alpha/beta/rc)
This commit is contained in:
2025-11-30 22:36:03 -05:00
parent 291d0e78df
commit 830715abb3
2 changed files with 8 additions and 6 deletions

View File

@@ -48,8 +48,10 @@ jobs:
- name: Build Docker image
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
if command -v docker &> /dev/null; then
docker build -t ffmpeg-worker:${{ steps.version.outputs.VERSION }} .
docker tag ffmpeg-worker:${{ steps.version.outputs.VERSION }} ffmpeg-worker:latest
docker images | grep ffmpeg-worker
else
echo "Docker not available - skipping build"
fi