Compare commits
107 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 | ||
|
ca23bf3349 | ||
|
0594786479 | ||
|
5ac3d65f5a | ||
|
da07970e17 | ||
|
a6653adf79 | ||
|
f5a68837e6 | ||
|
eec07d5973 | ||
|
24ef35b10f | ||
|
5859d2b8ed | ||
|
4cf2cab4d6 | ||
|
2c0f1da138 | ||
|
fb183d7620 | ||
|
31752cd589 | ||
|
38d93cfef2 | ||
|
c0656d462d | ||
|
c32da84657 | ||
|
9480520925 | ||
|
68964ae8b8 | ||
|
0b1e39caa9 | ||
|
9ec60047df | ||
|
ef1abaf730 | ||
|
6e0a52f568 | ||
|
7cc4456ae0 | ||
|
7ad228acaf | ||
|
518751f26e | ||
|
77ff257933 | ||
|
279738e13e | ||
|
410d12194f | ||
|
93e65d54c1 | ||
|
96e443b877 | ||
|
16e2ff0dbd | ||
|
a55cd9bdba | ||
|
0bb528d90b | ||
|
69f9cba6d6 | ||
|
e83ca0b39f | ||
|
a14a6de95c | ||
|
7950e9cc3e | ||
|
08e8eed450 | ||
|
aeea0cae8e | ||
|
6b5e14bba8 | ||
|
7525c1c1d8 | ||
|
7e364d0193 | ||
|
a85e4125a6 | ||
|
8b77858902 |
@ -1,18 +1,32 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
name: Node.js CI
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
steps:
|
||||
- run: echo " 🚀The job was automatically triggered by a ${{ gitea.event_name }} event."
|
||||
- run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- run: echo " The ${{ gitea.repository }} repository has been cloned to the runner."
|
||||
- run: echo " The workflow is now ready to test your code on the runner."
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
- run: echo " This job's status is ${{ job.status }}."
|
||||
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
|
||||
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
|
||||
- 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 }}
|
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
|
||||
title: Long Blog Post
|
||||
title: 123
|
||||
authors: endi
|
||||
tags: [hello, docusaurus]
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user