-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (36 loc) · 1.11 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
image: node:16
variables:
GIT_SUBMODULE_STRATEGY: recursive
build:
script:
- ./build.sh
artifacts:
paths:
- eaas-frontend-admin/dist/
- landing-page/dist/
build_multi_user_admin_ui:
script:
- ./build.sh
only:
refs:
- master
variables:
- $CI_PROJECT_NAMESPACE == "openslx"
artifacts:
paths:
- eaas-frontend-admin/dist/
- landing-page/dist/
build-citar:
stage: build
before_script:
- apt-get update -qq && apt-get install -y rsync sshpass
script:
- git submodule init && git submodule update --remote --merge
- echo $CONFIG > eaas-frontend-admin/src/public/config.json
- echo $CONFIG > landing-page/src/public/config.json
- ./build-citar.sh
- sshpass -p $gitlab rsync -e "ssh -o StrictHostKeyChecking=no" -rltvz -O /builds/openslx/demo-ui/eaas-frontend-admin/dist/ gitlab@$CITAR_SERVER:/mnt/data/citar-demo/demo-ui/eaas-frontend-admin/dist/
- sshpass -p $gitlab rsync -e "ssh -o StrictHostKeyChecking=no" -rltvz -O /builds/openslx/demo-ui/landing-page/dist/ gitlab@$CITAR_SERVER:/mnt/data/citar-demo/demo-ui/landing-page/dist/
only:
refs:
- citar-release