-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
77 lines (71 loc) · 1.22 KB
/
.gitlab-ci.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
image: node:latest
stages:
- trigger
- setup
- build
- package
- release
.yarn_job_template:
tags:
- gitlab-org
before_script:
- curl -o- -L https://yarnpkg.com/install.sh | bash
trigger:
stage: trigger
tags:
- gitlab-org
only:
refs:
- master
allow_failure: false
script:
- echo Starting pipeline
install-dependencies:
extends: .yarn_job_template
stage: setup
script:
- yarn install --cache-folder .yarn
cache:
key: 'yarn-server-cache_$CI_PROJECT_ID'
paths:
- .yarn
policy: pull-push
artifacts:
expire_in: 1 week
paths:
- 'node_modules/'
- '*/*/node_modules'
build-apps:
extends: .yarn_job_template
dependencies:
- install-dependencies
stage: build
script:
- yarn build
artifacts:
expire_in: 1 week
paths:
- 'build/'
- '*/*/build'
- '*/*/dist'
package:
extends: .yarn_job_template
dependencies:
- install-dependencies
- build-apps
stage: package
script:
- ./package.sh
artifacts:
expire_in: 1 week
paths:
- 'futbot.zip'
release:
stage: release
tags:
- gitlab-org
dependencies:
- install-dependencies
- package
script:
- yarn semantic-release