feat: setup standalone build and docker deployment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user