fix: 注册 lunar 专属运行器并修正工作流标签
- 在 doc79 注册 act_runner-lunar(ID 43),模式参考 readitlater - lunar-node: docker://node:22-bookworm(小程序构建) - lunar-ci: docker://golang:1.22-bookworm(后端构建) - 产物挂载 /opt/lunar/ci-artifacts:/ci-artifacts - .gitignore 补充 web/ 和 .ci-tmp/
This commit is contained in:
@@ -10,8 +10,8 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
# 使用 hk 运行器(空闲状态)
|
# 专属运行器:docker://node:22-bookworm(注册于 doc79,参考 new-pet-node 模式)
|
||||||
runs-on: hk
|
runs-on: lunar-node
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.neatcn.com/gouki/action-checkout@v4
|
- uses: https://gitea.neatcn.com/gouki/action-checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
cp mini/ci-artifacts/upload-result.json "/ci-artifacts/miniapp-upload-${{ gitea.sha }}.json"
|
cp mini/ci-artifacts/upload-result.json "/ci-artifacts/miniapp-upload-${{ gitea.sha }}.json"
|
||||||
cp mini/ci-artifacts/upload-result.json /ci-artifacts/miniapp-upload-latest.json
|
cp mini/ci-artifacts/upload-result.json /ci-artifacts/miniapp-upload-latest.json
|
||||||
ls -la /ci-artifacts/miniapp-upload-latest.json
|
ls -la /ci-artifacts/miniapp-upload-latest.json
|
||||||
echo "Upload result saved on runner host: /ci-artifacts/miniapp-upload-latest.json"
|
echo "Upload result saved on runner host: /opt/lunar/ci-artifacts/miniapp-upload-latest.json"
|
||||||
- name: Remove temporary credentials
|
- name: Remove temporary credentials
|
||||||
if: always()
|
if: always()
|
||||||
run: rm -f "$RUNNER_TEMP/wechat-ci.key"
|
run: rm -f "$RUNNER_TEMP/wechat-ci.key"
|
||||||
|
|||||||
@@ -10,18 +10,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# 使用 hk 运行器(空闲状态)
|
# 专属运行器:docker://golang:1.22-bookworm(注册于 doc79)
|
||||||
runs-on: hk
|
runs-on: lunar-ci
|
||||||
steps:
|
steps:
|
||||||
- uses: https://gitea.neatcn.com/gouki/action-checkout@v4
|
- uses: https://gitea.neatcn.com/gouki/action-checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 20
|
fetch-depth: 20
|
||||||
|
|
||||||
- name: Setup Go
|
|
||||||
uses: https://gitea.neatcn.com/gouki/action-setup-go@v4
|
|
||||||
with:
|
|
||||||
go-version: '1.22'
|
|
||||||
|
|
||||||
- name: Verify Go runtime
|
- name: Verify Go runtime
|
||||||
run: go version
|
run: go version
|
||||||
|
|
||||||
@@ -72,7 +67,7 @@ jobs:
|
|||||||
cp server/deploy.tar.gz "/ci-artifacts/server-deploy-${{ gitea.sha }}.tar.gz"
|
cp server/deploy.tar.gz "/ci-artifacts/server-deploy-${{ gitea.sha }}.tar.gz"
|
||||||
cp server/deploy.tar.gz /ci-artifacts/server-deploy-latest.tar.gz
|
cp server/deploy.tar.gz /ci-artifacts/server-deploy-latest.tar.gz
|
||||||
ls -la /ci-artifacts/server-deploy-latest.tar.gz
|
ls -la /ci-artifacts/server-deploy-latest.tar.gz
|
||||||
echo "Deployment package saved on runner host: /ci-artifacts/server-deploy-latest.tar.gz"
|
echo "Deployment package saved on runner host: /opt/lunar/ci-artifacts/server-deploy-latest.tar.gz"
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ logs/
|
|||||||
# 临时文件
|
# 临时文件
|
||||||
tmp/
|
tmp/
|
||||||
temp/
|
temp/
|
||||||
|
.ci-tmp/
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
server/bin/
|
server/bin/
|
||||||
@@ -59,6 +60,9 @@ server/public/build/
|
|||||||
server/public/hot
|
server/public/hot
|
||||||
server/web/
|
server/web/
|
||||||
|
|
||||||
|
# web 版万年历(独立项目,不属于本仓库)
|
||||||
|
web/
|
||||||
|
|
||||||
# 数据库
|
# 数据库
|
||||||
*.db
|
*.db
|
||||||
*.sqlite
|
*.sqlite
|
||||||
|
|||||||
Reference in New Issue
Block a user