ds4/.gitlab-ci.yml

47 lines
755 B
YAML

image: node:latest
stages:
- test
- build
- deploy
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm/
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