Compare commits

..

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

3 changed files with 16 additions and 52 deletions

View File

@ -1,32 +1,18 @@
name: Node.js CI
name: Gitea Actions Demo
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
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 }}
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 }}."

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]
---