From bf4b174a6cdca062fbe0e2d2f42c0a11bdc9540f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Apr 2025 04:57:33 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/cicd.yaml | 17 +++++++++++++++++ Dockerfile | 10 ++++++++++ {Jellyfin-danmaku => web/danmaku}/ede.user.js | 0 {tvbox => web/tvbox}/0.json | 0 {tvbox => web/tvbox}/tvlive.txt | 0 {tvbox => web/tvbox}/xiutan.m3u | 0 6 files changed, 27 insertions(+) create mode 100644 .gitea/workflows/cicd.yaml create mode 100644 Dockerfile rename {Jellyfin-danmaku => web/danmaku}/ede.user.js (100%) rename {tvbox => web/tvbox}/0.json (100%) rename {tvbox => web/tvbox}/tvlive.txt (100%) rename {tvbox => web/tvbox}/xiutan.m3u (100%) diff --git a/.gitea/workflows/cicd.yaml b/.gitea/workflows/cicd.yaml new file mode 100644 index 0000000..124d6cd --- /dev/null +++ b/.gitea/workflows/cicd.yaml @@ -0,0 +1,17 @@ +on: push +jobs: + build-and-push-blog: + runs-on: k3s + container: gitea.limil.top/limil/buildah-ubuntu:latest + steps: + + - uses: https://gitea.limil.top/limil/checkout@v3 + - run: git ls-files -z | while read -d '' path; do touch -d \"$(git log -1 --format=\"@%ct\" \"$path\")\" \"$path\"; done + - run: buildah login -u limil -p ${{ secrets.REG_PASSWORD }} gitea.limil.top + - run: buildah build --isolation chroot -t gitea.limil.top/limil/resource-site . + - run: buildah push gitea.limil.top/limil/resource-site:latest + # deloyment-blog: + # runs-on: k3s + # container: gitea.limil.top/limil/kubectl:latest + # steps: + # - run: kubectl rollout restart deployment/blog \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..06e2cc2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM gitea.limil.top/limil/nginx:1.25.3-alpine + +# 从构建阶段复制生成的文件 +COPY web /usr/share/nginx/html + +# 暴露80端口 +EXPOSE 80 + +# 启动Nginx(保持前台运行) +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/Jellyfin-danmaku/ede.user.js b/web/danmaku/ede.user.js similarity index 100% rename from Jellyfin-danmaku/ede.user.js rename to web/danmaku/ede.user.js diff --git a/tvbox/0.json b/web/tvbox/0.json similarity index 100% rename from tvbox/0.json rename to web/tvbox/0.json diff --git a/tvbox/tvlive.txt b/web/tvbox/tvlive.txt similarity index 100% rename from tvbox/tvlive.txt rename to web/tvbox/tvlive.txt diff --git a/tvbox/xiutan.m3u b/web/tvbox/xiutan.m3u similarity index 100% rename from tvbox/xiutan.m3u rename to web/tvbox/xiutan.m3u