all repos — caroster @ 1eff8c695a32beae4a1bd07c45c45ec05f27a0f4

[Octree] Group carpool to your event https://caroster.io

.gitlab-ci.yml (view raw)

 1include:
 2  - project: o/infra/templates
 3    file: /gitlab-ci/includes/StrapiBuildDeploy.yaml
 4  - project: o/infra/templates
 5    file: /gitlab-ci/includes/jobs.yaml
 6
 7Test:
 8  stage: test
 9  coverage: /All\sfiles.*?\s+(\d+.\d+)/
10  image: node:current-alpine3.12
11  only:
12    - merge_requests
13    - master
14  script:
15    - echo "45.66.221.1 npm-8ee.hidora.com" >> /etc/hosts
16    - npm set registry ${NPM_REGISTRY:-https://npm-8ee.hidora.com/}
17    - apk add --no-cache python3
18    - cd frontend
19    - yarn install --production=false
20    - yarn lint
21    # - npm run test
22  cache:
23    key: "$CI_COMMIT_REF_SLUG"
24    paths:
25      - frontend/node_modules/
26      - ~/.npm
27
28Deploy Test:
29  extends: .deployHidora
30  rules:
31    - if: '$CI_COMMIT_REF_NAME == "master"'
32  environment:
33    name: Test
34    url: "https://caroster-dev.hidora.com"
35
36Deploy to Prod:
37  extends: .deployHidora
38  rules:
39    - if: "$CI_COMMIT_TAG =~ /v.*$/"
40      when: manual
41  environment:
42    name: Prod
43    url: https://app.caroster.io