Skip to content

一分钟搭建影视站,支持Docker等部署方式

fix: update workflow triggers for Docker build (#370)

Zwei842db147bada
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml
index 8dbb451..cdec817 100644
--- a/.github/workflows/docker-build.yml
+++ b/.github/workflows/docker-build.yml
@@ -1,17 +1,20 @@
name: 'Build LibreTV image'
on:
- push:
- branches:
- - main
+ workflow_run:
+ workflows: ["Bump version"]
+ types:
+ - completed
workflow_dispatch:
jobs:
build:
name: 'Build LibreTV image'
runs-on: ubuntu-latest
- # Modified to run on both repositories
- if: github.repository == 'LibreSpark/LibreTV' || github.repository == 'bestZwei/libretv'
+ if: >
+ (github.event_name == 'workflow_dispatch')
+ || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'
+ && (github.repository == 'LibreSpark/LibreTV' || github.repository == 'bestZwei/libretv'))
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
diff --git a/VERSION.txt b/VERSION.txt
index dcd5223..00cabf1 100644
--- a/VERSION.txt
+++ b/VERSION.txt
@@ -1 +1 @@
-202505121756
+202505121749