mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-16 23:09:03 +00:00
Lint and build in same step
The node modules are too large to persist between stages
This commit is contained in:
parent
2221a14f7a
commit
68a05ca0e6
1 changed files with 1 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -15,19 +14,13 @@ build:
|
||||||
- npm ci --cache .npm --prefer-offline
|
- npm ci --cache .npm --prefer-offline
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
|
- npm run prettier
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "$CI_JOB_ID"
|
name: "$CI_JOB_ID"
|
||||||
paths:
|
paths:
|
||||||
- ./node_modules
|
|
||||||
- ./public
|
- ./public
|
||||||
expire_in: 30 mins
|
expire_in: 30 mins
|
||||||
|
|
||||||
prettier:
|
|
||||||
image: node:slim
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npm run prettier
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: dokku/ci-docker-image:latest
|
image: dokku/ci-docker-image:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
Loading…
Reference in a new issue