add fake deployment job to gitlab ci

This commit is contained in:
Johannes Loher 2020-12-27 13:33:53 +01:00
parent 7884a126b2
commit 174c37f3b4

View file

@ -1,27 +1,47 @@
image: node:latest
stages:
- Build
- Test
- test
- build
- deploy
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm/
before_script:
- npm ci --cache .npm --prefer-offline
Build:
stage: Build
script:
- npm run build
Lint:
stage: Test
lint:
stage: test
before_script:
- npm ci --cache .npm --prefer-offline
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