-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
31 lines (30 loc) · 748 Bytes
/
.gitlab-ci.yml
File metadata and controls
31 lines (30 loc) · 748 Bytes
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
npm_build:
stage: build
tags:
- shared-fi
image: node:8
# Cache modules in between jobs
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
script:
- npm install --progress=false
- npm run build
artifacts:
expire_in: 1 week
paths:
- dist
deploy_to_aisa:
stage: deploy
image: alpine
tags:
- shared-fi
script:
- apk add --no-cache rsync openssh coreutils
- mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY_RSA" > ~/.ssh/id_analysis
- chmod 600 ~/.ssh/id_analysis
- ssh-keyscan aisa.fi.muni.cz >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- rsync -rav -e "ssh -v -i ~/.ssh/id_analysis" --delete dist/ xrehacek@aisa.fi.muni.cz:~/public_html/analysis-vis