Skip to content
Snippets Groups Projects

Fix de la pipeline ci/cd

Merged MARTIN Pierre-Alexandre requested to merge ci-cd into main
+ 5
15
image: node:22
stages:
- install
- build
- deploy
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- node_modules/
variables:
NUXT_ENV: production
install:
stage: install
script:
- npm ci
only:
- main
build:
stage: build
script:
- npm ci
- npm run build
- ls -l .output/public
artifacts:
paths:
- .nuxt/
- dist/
only:
- main
- .output/
deploy:
stage: deploy
script:
- rsync -avz dist/ user@server:/var/www/nuxt
only:
- main
\ No newline at end of file
- rsync -avz .output/public/ user@server:/var/www/nuxt
Loading