Compare commits

..

No commits in common. "main" and "0.2" have entirely different histories.
main ... 0.2

3 changed files with 11 additions and 48 deletions

View File

@ -1,32 +1,17 @@
name: Node.js CI
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
build:
#runs-on: Ubuntu
steps:
- run: uname -a
- name: 克隆仓库
uses: http://47.116.170.60:3300/jeff/checkout@v3
- name: 指定node.js版本
uses: http://47.116.170.60:3300/jeff/setup-node@v4
steps:
- name: Check out repository code ${{ gitea.repository }}
uses: actions/checkout@v0.1
- name: Use gitea Node.js
uses: https://gitea.com/actions/setup-node@v4
with:
node-version: '20'
- 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
node-version: '14'
- name: Install dependencies
run: yarn install
- name: Build Docusaurus website
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 }}
run: yarn build

View File

@ -1,22 +0,0 @@
# 参考https://blog.51cto.com/u_16213361/7195639
# 构建前先编译vuenpm 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;"]

View File

@ -1,6 +1,6 @@
---
slug: long-blog-post
title: 123
title: Long Blog Post
authors: endi
tags: [hello, docusaurus]
---