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

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 slug: long-blog-post
title: 123 title: Long Blog Post
authors: endi authors: endi
tags: [hello, docusaurus] tags: [hello, docusaurus]
--- ---