测试部署
This commit is contained in:
parent
6f0f71c816
commit
958349dd9e
24
.gitea/workflow/docker.yaml
Normal file
24
.gitea/workflow/docker.yaml
Normal 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
7
Dockerfile
Normal 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
11
_coverpage.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|

|
||||||
|
|
||||||
|
# 微果AI无人直播场控
|
||||||
|
|
||||||
|
> 专业简洁的无人直播场控系统
|
||||||
|
|
||||||
|
专业 简洁
|
||||||
|
高效 可定制
|
||||||
|
|
||||||
|
|
||||||
|
[快速开始](README.md)
|
@ -21,6 +21,7 @@
|
|||||||
formatUpdated: function (time) {
|
formatUpdated: function (time) {
|
||||||
return time;
|
return time;
|
||||||
},
|
},
|
||||||
|
coverpage: true,
|
||||||
logo: '/images/logo.png',
|
logo: '/images/logo.png',
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user