-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
53 lines (50 loc) · 1.33 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
workflow:
rules:
- if: $CI_PIPELINE_SOURCE =~ /^trigger|pipeline|web|api|push|schedule$/
when: always
- when: never
stages:
- build
- test
- deploy
variables:
VAR1:
value: "value1"
description: "[value 1, value 2, value 3] - Variable 1, *Example: **value 1**, **value 2***"
VAR2:
value: "value2"
description: "Variable 2, [link](https://www.google.com)"
VAR3:
value: "value3"
description: "[text1, text2, text3] - Variable 3"
DEPLOY_BRANCH:
value: "main"
description: "[$glBranches()] - Branch to deploy to"
DEPLOY_BRANCH2:
value: "main"
description: "[$glBranches(42014162)] - Branch to deploy to"
DEPLOY_BRANCH3:
value: "main"
description: "[$glBranches(42014162), inline-branch-1, inline-branch-2] - Branch to deploy to"
EXTERNAL_VAR1:
value: "external-value1"
description: "External variable 1"
EXTERNAL_VAR2:
value: "external-value2"
description: "External variable 2"
build:
stage: build
image: node:14
script:
- echo "Build"
# Install yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.10
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# Install dependencies
- yarn install
# Build
- yarn build
artifacts:
paths:
- dist
expire_in: never