feat: setup standalone build and docker deployment
Some checks failed
CI / build-and-test (push) Successful in 1m18s
CI / deploy (push) Failing after 3s

This commit is contained in:
SpecialX
2025-12-18 17:16:39 +08:00
parent 81a91fbfff
commit 4bd5c687bc
3 changed files with 41 additions and 1 deletions

View File

@@ -40,3 +40,21 @@ jobs:
next.config.*
tsconfig.json
.npmrc
public
Dockerfile
deploy:
needs: build-and-test
runs-on: CDCD
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 3492:3000 --restart unless-stopped --name nextjs-app nextjs-app