测试部署

This commit is contained in:
CN-P5 2025-04-23 15:15:03 +08:00
parent 6f0f71c816
commit 958349dd9e
4 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,24 @@
name: 编译部署
on: [push]
jobs:
build-and-push:
runs-on: debian
env:
MYREGISTRY : ${{ vars.MYREGISTRY }}
MYIMAGE : ${{ vars.MYIMAGE }}
MYPORT: ${{ vars.MYPORT }}
steps:
- name: 检出源码
uses: https://git.des8.com/docker/checkout@v4
- name: 编译Docker镜像
run: docker build -f Dockerfile --no-cache -t $MYIMAGE .
- name: 打Tag
run: |
docker tag $MYIMAGE $MYREGISTRY/$MYIMAGE
- name: 运行
run: |
docker run -d -p 3000:$MYPORT -v $(pwd):/docs --name $MYIMAGE $MYREGISTRY/$MYIMAGE

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM node:latest
LABEL description="ai-live-docs"
WORKDIR /
RUN npm config set registry https://registry.npmmirror.com
RUN npm install -g docsify-cli@latest
EXPOSE 3000/tcp
ENTRYPOINT docsify serve .

11
_coverpage.md Normal file
View File

@ -0,0 +1,11 @@
![logo](images/logo.png)
# 微果AI无人直播场控
> 专业简洁的无人直播场控系统
专业 简洁
高效 可定制
[快速开始](README.md)

View File

@ -21,6 +21,7 @@
formatUpdated: function (time) {
return time;
},
coverpage: true,
logo: '/images/logo.png',
}
</script>