diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c54bd1..902a31c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,13 +7,13 @@ stages: build_stage: stage: build # use node docker image as enviroment - image: oven/bun:debian + image: node:latest script: # install & build the NuxtJS application - apt update - apt-get install -y --no-install-recommends python3 build-essential - - bun install - - bun run --bun build + - npm install + - npm run build # define artifacts which are shared between stages artifacts: paths: @@ -47,7 +47,7 @@ deploy_stage: # restart Node.js and reload nginx configuration - ssh rockfic@${DEPLOY_SERVER} 'mongosh mongodb://localhost --eval "use ${DB_NAME}; db.dropDatabase();"' - ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && bun run ./index.ts' - - ssh rockfic@${DEPLOY_SERVER} bun --watch run "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1 + - ssh rockfic@${DEPLOY_SERVER} node run "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1 - ssh rockfic@${DEPLOY_SERVER} systemctl reload apache2 environment: name: staging