chore: remove debug steps and loyment workflow
All checks were successful
CI / build-and-test (push) Successful in 1m33s

This commit is contained in:
SpecialX
2025-12-22 13:28:18 +08:00
parent b453bab8b8
commit 36b2275f50

View File

@@ -49,33 +49,33 @@ jobs:
# 查找 .next 目录下 4 层深度的文件,但排除 node_modules 避免日志太长
find .next -maxdepth 4 -not -path '*/node_modules*'
- name: Prepare standalone build
run: |
cp -r public .next/standalone/public
cp -r .next/static .next/standalone/.next/static
cp Dockerfile .next/standalone/Dockerfile
# - name: Prepare standalone build
# run: |
# cp -r public .next/standalone/public
# cp -r .next/static .next/standalone/.next/static
# cp Dockerfile .next/standalone/Dockerfile
- name: Upload production build artifact
uses: actions/upload-artifact@v3
with:
name: next-build
path: .next/standalone
# - name: Upload production build artifact
# uses: actions/upload-artifact@v3
# with:
# name: next-build
# path: .next/standalone
deploy:
needs: build-and-test
runs-on: CDCD
container:
image: dockerreg.eazygame.cn/node-with-docker:22
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: next-build
# deploy:
# needs: build-and-test
# runs-on: CDCD
# container:
# image: dockerreg.eazygame.cn/node-with-docker:22
# steps:
# - name: Download artifacts
# uses: actions/download-artifact@v3
# with:
# name: next-build
- name: Deploy to Docker
run: |
docker build -t nextjs-app .
docker stop nextjs-app || true
docker rm nextjs-app || true
docker run -d -p 8015:3000 --restart unless-stopped --name nextjs-app nextjs-app
# - name: Deploy to Docker
# run: |
# docker build -t nextjs-app .
# docker stop nextjs-app || true
# docker rm nextjs-app || true
# docker run -d -p 8015:3000 --restart unless-stopped --name nextjs-app nextjs-app