Download apps.csv instead of using submodules

This commit is contained in:
Dark Dragon 2022-10-17 08:08:41 +02:00
parent b94e437411
commit 21fe07cb31
4 changed files with 8 additions and 5 deletions

3
.gitignore vendored
View File

@ -9,3 +9,6 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
.DS_Store
# Files downloaded in CI
/download/

View File

@ -1,12 +1,16 @@
variables:
APPS_REF: master
GIT_SUBMODULE_STRATEGY: recursive
build:
stage: build
image: python:3
script:
- mkdir -p ${CI_PROJECT_DIR}/download
- cd ${CI_PROJECT_DIR}/download
- 'curl --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" -LJOf "https://framagit.org/api/v4/projects/linmobapps%2Flinmobapps.frama.io/repository/files/apps.csv/raw?ref=${APPS_REF}"'
- cd ${CI_PROJECT_DIR}/static/appscsv2tomlmd/
- python3 run.py ${CI_PROJECT_DIR}/static/csv-lists/apps.csv ${CI_PROJECT_DIR}/content/apps
- python3 run.py ${CI_PROJECT_DIR}/download/apps.csv ${CI_PROJECT_DIR}/content/apps
artifacts:
paths:
- content/apps

3
.gitmodules vendored
View File

@ -1,9 +1,6 @@
[submodule "themes/adidoks"]
path = themes/adidoks
url = https://github.com/aaranxu/adidoks.git
[submodule "static/csv-lists"]
path = static/csv-lists
url = https://framagit.org/linmobapps/linmobapps.frama.io
[submodule "static/appscsv2tomlmd"]
path = static/appscsv2tomlmd
url = https://framagit.org/linuxphoneapps/appscsv2tomlmd

@ -1 +0,0 @@
Subproject commit 5cb16c98c7c8c311a007a4565ce3a18d0305ca5c