-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
59 lines (54 loc) · 1.08 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
default:
image: docker.io/library/node:18
before_script:
- mkdir -p ~/.ssh && echo -e "${SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa && chmod og-rwx ~/.ssh/id_rsa
# - echo "$SSH_PRIVATE_KEY" | ssh-add - > /dev/null
- mkdir -p ~/.ssh && touch ~/.ssh/known_hosts
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- npm ci
# - git clone https://github.com/zazuko/ssz-views.git && cd ssz-views && npm install
- cd $CI_PROJECT_DIR
cache:
paths:
- node_modules/
pipeline_prod:
only:
- master
# - develop
tags:
- medium
environment:
name: PROD
script:
- ./scripts/main.sh
pipeline_int:
only:
- develop
tags:
- medium
except:
variables:
- $RELEASE == "zazuko"
environment:
name: INT
script:
- ./scripts/main.sh
# artifacts:
# paths:
# - output/output.nt.gz
# expire_in: 1 day
#pipeline_test:
# only:
# - develop
# variables:
# - $RELEASE == "zazuko"
# tags:
# - medium
# environment:
# name: TEST
# script:
# - ./scripts/main.sh
# artifacts:
# paths:
# - output/output.nt
# expire_in: 1 day