-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
76 lines (70 loc) · 1.44 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
stages:
- build
- deploy
ExtractTranlations:
stage: build
image: node
cache:
paths:
- node_modules
before_script:
- npm install
script:
- node ./scripts/extract-translations.js
artifacts:
paths:
- skeletons
- xliff
GeneratePdf:
stage: build
image: node:stretch-slim
cache:
paths:
- node_modules
before_script:
- apt update
- apt install fonts-roboto -y
- apt install libfontconfig -y
- npm install
- node ./scripts/generate-menu.js
script:
- node ./scripts/generate-pdf.js
artifacts:
paths:
- pdf
GenerateQrCode:
stage: build
image: node:stretch-slim
cache:
paths:
- node_modules
before_script:
- npm install
- node ./scripts/generate-menu.js
script:
- node ./scripts/generate-qrcode.js
artifacts:
paths:
- qrcode
DeployPdf:
stage: deploy
image: python:latest
needs: [GeneratePdf]
before_script:
- pip install awscli
script:
- aws s3 cp pdf/ s3://${BUCKET_NAME}/manuals --recursive --acl public-read
only:
- master
trigger_build_website:
stage: deploy
script:
- "curl -X POST -F token=$TOKEN -F ref=master https://gitlab.com/api/v4/projects/12904084/trigger/pipeline"
only:
- master
trigger_build_stereotech_app:
stage: deploy
script:
- "curl -X POST -F token=$WORK_DOCS_TOKEN -F ref=master https://gitlab.com/api/v4/projects/17106030/trigger/pipeline"
only:
- develop