Add deployment
This commit is contained in:
parent
97e4008c56
commit
dd98eb5daf
1 changed files with 7 additions and 1 deletions
|
@ -3,6 +3,7 @@ image: node:alpine
|
||||||
stages:
|
stages:
|
||||||
- prepare
|
- prepare
|
||||||
- test
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- postgres:latest
|
- postgres:latest
|
||||||
|
@ -23,7 +24,7 @@ variables:
|
||||||
install_requirements:
|
install_requirements:
|
||||||
stage: prepare
|
stage: prepare
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache python make g++
|
- apk add --no-cache python make g++ crul
|
||||||
- npm config set registry http://registry.npmjs.org/
|
- npm config set registry http://registry.npmjs.org/
|
||||||
- npm install
|
- npm install
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -34,3 +35,8 @@ tests:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- curl -fL https://letu.flifloo.fr/git
|
||||||
|
|
Reference in a new issue