add fake deployment job to gitlab ci
This commit is contained in:
parent
7884a126b2
commit
174c37f3b4
1 changed files with 32 additions and 12 deletions
|
@ -1,27 +1,47 @@
|
||||||
image: node:latest
|
image: node:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- Build
|
- test
|
||||||
- Test
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
- .npm/
|
- .npm/
|
||||||
|
|
||||||
before_script:
|
lint:
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline
|
- npm ci --cache .npm --prefer-offline
|
||||||
|
|
||||||
Build:
|
|
||||||
stage: Build
|
|
||||||
script:
|
|
||||||
- npm run build
|
|
||||||
|
|
||||||
Lint:
|
|
||||||
stage: Test
|
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|
||||||
# Test:
|
# Test:
|
||||||
# stage: Test
|
# stage: Test
|
||||||
# script:
|
# script:
|
||||||
# - npm test
|
# - npm test
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline
|
||||||
|
script:
|
||||||
|
- npm run build
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- dist
|
||||||
|
expire_in: 1 week
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: deploy
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
script:
|
||||||
|
- echo "Deploying to production..."
|
||||||
|
- ls dist
|
||||||
|
environment:
|
||||||
|
name: production
|
||||||
|
url: https://vtt.f3l.de/
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
Loading…
Reference in a new issue