-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
60 lines (57 loc) · 1.17 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
stages:
- build-deps
- build
- deploy
platfrom:web:
stage: build-deps
image: node:14-alpine
only:
- branches
tags:
- docker
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- cd submodule/wallet.platform.web
- npm install
- npm run build
artifacts:
paths:
- submodule/wallet.platform.web/.dist
binweb:snapshot:
stage: build
image: zxteamorg/devel.flutter
dependencies:
- platfrom:web
only:
- branches
tags:
- docker
script:
- rm web/extension_loader.js
- rm web/extenstion.html
- rm web/index-extenstion.html
- rm web/index-webapp-devel.html
- rm web/index.html
- mv web/index-webapp.html web/index.html
- flutter build web --web-renderer html
artifacts:
paths:
- build
pages:
stage: deploy
dependencies:
- binweb:snapshot
only:
- master
tags:
- docker
script:
- mv build/web public
- sed -i "s~<base href=\"/\" />~<base href=\"/wallet/\" />~g" public/index.html
- sed -i "s~var pathSegmentsToKeep = 0~var pathSegmentsToKeep = 1~g" public/404.html
- echo "See $CI_PAGES_URL/"
- ls -l public/
artifacts:
paths:
- public