-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (54 loc) · 1.14 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
stages:
- build
- test
- deploy
#image: alpine:latest
#
## variables:
#
#before_script:
# - apk list -I
# - >
# apk --no-cache add libatomic readline readline-dev libxml2 libxml2-dev
# ncurses-terminfo-base ncurses-terminfo
# libxslt libxslt-dev zlib-dev zlib
# ruby ruby-dev yaml yaml-dev
# libffi-dev build-base git nodejs
# - gem install bundler --no-document
# - pwd
# - ls -l
# - bundle install
build:
stage: build
image: node:alpine
script:
- npm install
- npm run build
artifacts:
paths:
- dist
tags:
- docker
######################################################################
# this defines the job (for gitlab-pages it has the special name "pages")
pages:
stage: deploy
needs:
- build
script:
- pwd
- ls dist
- mv dist public
# defines what is produced by the scripts (the "artifacts")
artifacts:
paths:
- public
# the tags define which runners (builders) will be selected. A
# suitable runner must have an identical tag
tags:
- shared
- gitlab-pages
- docker
# the "pages" job is only to be run for the master branch
only:
- master