chore: remove debug steps and loyment workflow
All checks were successful
CI / build-and-test (push) Successful in 1m33s
All checks were successful
CI / build-and-test (push) Successful in 1m33s
This commit is contained in:
@@ -49,33 +49,33 @@ jobs:
|
|||||||
# 查找 .next 目录下 4 层深度的文件,但排除 node_modules 避免日志太长
|
# 查找 .next 目录下 4 层深度的文件,但排除 node_modules 避免日志太长
|
||||||
find .next -maxdepth 4 -not -path '*/node_modules*'
|
find .next -maxdepth 4 -not -path '*/node_modules*'
|
||||||
|
|
||||||
- name: Prepare standalone build
|
# - name: Prepare standalone build
|
||||||
run: |
|
# run: |
|
||||||
cp -r public .next/standalone/public
|
# cp -r public .next/standalone/public
|
||||||
cp -r .next/static .next/standalone/.next/static
|
# cp -r .next/static .next/standalone/.next/static
|
||||||
cp Dockerfile .next/standalone/Dockerfile
|
# cp Dockerfile .next/standalone/Dockerfile
|
||||||
|
|
||||||
- name: Upload production build artifact
|
# - name: Upload production build artifact
|
||||||
uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: next-build
|
# name: next-build
|
||||||
path: .next/standalone
|
# path: .next/standalone
|
||||||
|
|
||||||
deploy:
|
# deploy:
|
||||||
needs: build-and-test
|
# needs: build-and-test
|
||||||
runs-on: CDCD
|
# runs-on: CDCD
|
||||||
container:
|
# container:
|
||||||
image: dockerreg.eazygame.cn/node-with-docker:22
|
# image: dockerreg.eazygame.cn/node-with-docker:22
|
||||||
steps:
|
# steps:
|
||||||
- name: Download artifacts
|
# - name: Download artifacts
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: next-build
|
# name: next-build
|
||||||
|
|
||||||
- name: Deploy to Docker
|
# - name: Deploy to Docker
|
||||||
run: |
|
# run: |
|
||||||
docker build -t nextjs-app .
|
# docker build -t nextjs-app .
|
||||||
docker stop nextjs-app || true
|
# docker stop nextjs-app || true
|
||||||
docker rm nextjs-app || true
|
# docker rm nextjs-app || true
|
||||||
docker run -d -p 8015:3000 --restart unless-stopped --name nextjs-app nextjs-app
|
# docker run -d -p 8015:3000 --restart unless-stopped --name nextjs-app nextjs-app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user