fix: run deploy job on host to use host docker cli
This commit is contained in:
@@ -46,21 +46,15 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
needs: build-and-test
|
needs: build-and-test
|
||||||
runs-on: CDCD
|
runs-on: CDCD
|
||||||
container: dockerreg.eazygame.cn/node:22-bookworm
|
|
||||||
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: Install Docker CLI
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y docker.io
|
|
||||||
|
|
||||||
- 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 3492:3000 --restart unless-stopped --name nextjs-app nextjs-app
|
docker run -d -p 3000:3000 --restart unless-stopped --name nextjs-app nextjs-app
|
||||||
|
|||||||
Reference in New Issue
Block a user