summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 9f5377203e474e5495f7c9fa41ce510ad2880ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cache:
  paths:
    - node_modules/

stages:
  - build
  - deploy

build:
  stage: build
  image: node:12
  script:
    - npm install
    - npm run start
  artifacts:
    paths:
      - index.js
    expire_in: 1 week

deploy_prod:
  stage: deploy
  script:
    - echo "Deploying to production!"
  environment:
    name: prod
    url: https://spluseins.de