diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 12eb343..300830b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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