Compare commits
63 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c031765c57 | ||
|
a264976afe | ||
|
def6991c61 | ||
|
43aeab876c | ||
|
4e794299bd | ||
|
0f48763a78 | ||
|
b4885e42c2 | ||
|
6bd63011f0 | ||
|
e0f5196bbc | ||
|
bc378bbd55 | ||
|
9721fc62be | ||
|
05ea195a72 | ||
|
c4d26bb1e6 | ||
|
cb8676ef31 | ||
|
c3ea9952bc | ||
|
df50a32a4b | ||
|
bb825019b6 | ||
|
8b853f3870 | ||
|
876a6c7e0e | ||
|
37c85af234 | ||
|
0766cdf093 | ||
|
2f97426811 | ||
|
b954e58938 | ||
|
5cada9eb86 | ||
|
0ae72278a2 | ||
|
f16dc3b2c0 | ||
|
2e51c72ae6 | ||
|
6b84547f39 | ||
|
d39e4b2bf5 | ||
|
e54ccd6e14 | ||
|
8a8f02eb05 | ||
|
05deb2ecab | ||
|
12683ee3d0 | ||
|
12274fd6c4 | ||
|
cc04a3d129 | ||
|
4fed152237 | ||
|
1611972b78 | ||
|
eb8f191e4d | ||
|
22ecde99a0 | ||
|
88410fd436 | ||
|
d7e78b0f47 | ||
|
72f0280df2 | ||
|
f464e3291a | ||
|
6abe1c1dfd | ||
|
90dce4c971 | ||
|
c638162d79 | ||
|
30b89e086e | ||
|
625b495dd0 | ||
|
36ff2c4692 | ||
|
15e2fbf42f | ||
|
58b9925ed9 | ||
|
19f7314313 | ||
|
791d5095e6 | ||
|
0e4524198b | ||
|
3f47b1810e | ||
|
3c13abb59a | ||
|
d649bb46bf | ||
|
1620f6a21e | ||
|
b73ab1650c | ||
|
2d9add3161 | ||
|
171d68cebf | ||
|
de3668292f | ||
|
e9a0e10e45 |
@ -1,17 +1,32 @@
|
|||||||
name: Node.js CI
|
name: Node.js CI
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
steps:
|
#runs-on: Ubuntu
|
||||||
- name: Check out repository code ${{ gitea.repository }}
|
steps:
|
||||||
uses: actions/checkout@v0.1
|
- run: uname -a
|
||||||
- name: Use gitea Node.js
|
- name: 克隆仓库
|
||||||
uses: https://gitea.com/actions/setup-node@v4
|
uses: http://47.116.170.60:3300/jeff/checkout@v3
|
||||||
|
- name: 指定node.js版本
|
||||||
|
uses: http://47.116.170.60:3300/jeff/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '20'
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install
|
- run: yarn config get registry
|
||||||
|
- run: npm config get registry
|
||||||
|
- run: yarn config set registry http://47.116.170.60:40087
|
||||||
|
- run: npm config set registry http://47.116.170.60:40087
|
||||||
|
- run: yarn config get registry
|
||||||
|
- run: npm config get registry
|
||||||
|
- run: yarn cache clean
|
||||||
|
- run: ls -lR
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn
|
||||||
- name: Build Docusaurus website
|
- name: Build Docusaurus website
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
- run: ls
|
||||||
|
- run: docker build -t jeffdoc:${{ gitea.sha }} .
|
||||||
|
- run: docker stop jeffdoc
|
||||||
|
- run: docker rm jeffdoc
|
||||||
|
- run: docker run --name=jeffdoc -d -p 9080:80 jeffdoc:${{ gitea.sha }}
|
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# 参考https://blog.51cto.com/u_16213361/7195639
|
||||||
|
|
||||||
|
# 构建前,先编译vue:npm run build
|
||||||
|
|
||||||
|
# 基础镜像
|
||||||
|
FROM nginx
|
||||||
|
|
||||||
|
# 定义作者
|
||||||
|
MAINTAINER superjeff
|
||||||
|
|
||||||
|
# 将 Vue 项目的打包文件复制到 Nginx 静态文件目录下
|
||||||
|
COPY build/ /usr/share/nginx/html/
|
||||||
|
|
||||||
|
# 复制自定义的 Nginx 配置文件到容器中
|
||||||
|
#COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
|
# 暴露容器的 80 端口
|
||||||
|
#EXPOSE 8888
|
||||||
|
|
||||||
|
# 容器启动时执行的命令
|
||||||
|
#CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
slug: long-blog-post
|
slug: long-blog-post
|
||||||
title: Long Blog Post
|
title: 123
|
||||||
authors: endi
|
authors: endi
|
||||||
tags: [hello, docusaurus]
|
tags: [hello, docusaurus]
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user