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
|
||||
|
||||
stages:
|
||||
- Build
|
||||
- Test
|
||||
- test
|
||||
- build
|
||||
- deploy
|
||||
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- .npm/
|
||||
|
||||
before_script:
|
||||
lint:
|
||||
stage: test
|
||||
before_script:
|
||||
- npm ci --cache .npm --prefer-offline
|
||||
|
||||
Build:
|
||||
stage: Build
|
||||
script:
|
||||
- npm run build
|
||||
|
||||
Lint:
|
||||
stage: Test
|
||||
script:
|
||||
- npm run lint
|
||||
|
||||
# Test:
|
||||
# stage: Test
|
||||
# script:
|
||||
# - 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