forked from mycard/ygopro-database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
41 lines (37 loc) · 917 Bytes
/
.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
stages:
- build
- deploy
variables:
GIT_DEPTH: "1"
get_lflist:
stage: build
script:
- apt update;apt -y install wget sqlite3
- wget -O lflist.conf https://code.mycard.moe/mycard/ygopro/-/raw/master/lflist.conf
- ls locales | xargs -I {} bash -c 'cp ./lflist.conf ./locales/{}/ ; sqlite3 ./locales/{}/cards.cdb .dump > ./locales/{}/cards.sql'
- cp -rf locales dist
artifacts:
paths:
- dist/
tags:
- linux
upload_to_minio_latest:
stage: deploy
dependencies:
- get_lflist
tags:
- linux
script:
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/ygopro-database
only:
- master
upload_to_minio_rainbow:
stage: deploy
dependencies:
- get_lflist
tags:
- linux
script:
- aws s3 --endpoint=https://rainbow-minio.moestart.com:9777 sync --delete dist/ s3://mycard/ygopro-database
only:
- master