configure CI

This commit is contained in:
isUnknown 2024-04-07 07:29:27 +02:00
parent 088905057a
commit c73ddf7808
4 changed files with 50 additions and 8 deletions

24
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,24 @@
stages:
- build and deploy
build and deploy:
stage: build and deploy
only:
- main
script:
- npm install
- npm install -g gulp
- gulp build
- npm run build
- apt-get update -qq && apt-get install -y -qq lftp
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST;
mirror --reverse --verbose --ignore-time --parallel=10
-x static/
assets assets;
mirror --reverse --verbose --ignore-time --parallel=10
-x accounts/
-x cache/
-x sessions/
-x header.php
site site;
quit"