Fix CI pipeline to use npm install instead of npm ci (no lockfile in repo)
This commit is contained in:
@@ -38,7 +38,7 @@ stages:
|
|||||||
install-backend:
|
install-backend:
|
||||||
stage: install
|
stage: install
|
||||||
script:
|
script:
|
||||||
- npm ci
|
- npm install
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
@@ -48,7 +48,7 @@ install-frontend:
|
|||||||
stage: install
|
stage: install
|
||||||
script:
|
script:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- npm ci
|
- npm install
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- frontend/node_modules/
|
- frontend/node_modules/
|
||||||
@@ -121,8 +121,8 @@ deploy:
|
|||||||
- echo "Deploying on dashboard-dev..."
|
- echo "Deploying on dashboard-dev..."
|
||||||
- cd /home/cve-dashboard
|
- cd /home/cve-dashboard
|
||||||
- git pull origin ${CI_COMMIT_BRANCH}
|
- git pull origin ${CI_COMMIT_BRANCH}
|
||||||
- npm ci
|
- npm install
|
||||||
- cd frontend && npm ci && npm run build && cd ..
|
- cd frontend && npm install && npm run build && cd ..
|
||||||
- ./stop-servers.sh || true
|
- ./stop-servers.sh || true
|
||||||
- ./start-servers.sh
|
- ./start-servers.sh
|
||||||
- echo "Deploy complete."
|
- echo "Deploy complete."
|
||||||
|
|||||||
Reference in New Issue
Block a user