ci: add CI/CD FTP deployment workflows and local deploy script for Hostverge

This commit is contained in:
streaper2
2026-09-27 18:25:19 +02:00
parent 88f23caf3b
commit 3af47720d3
7 changed files with 235 additions and 0 deletions

34
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,34 @@
image: node:20
stages:
- build
- deploy
build_app:
stage: build
variables:
VITE_NCB_INSTANCE: "54770_uwu_finances"
VITE_NCB_SECRET_KEY: "sk_live_0dydoaq1kib4f23ou6"
VITE_NCB_DATA_API_URL: "https://eu-api.nocodebackend.com"
script:
- npm ci || npm install
- npm run build
artifacts:
paths:
- dist/
expire_in: 1 hour
only:
- main
- master
deploy_ftp:
stage: deploy
dependencies:
- build_app
before_script:
- apt-get update -qq && apt-get install -y -qq lftp
script:
- lftp -e "set ftp:ssl-allow no; open ka-el.fr; user antigravity@ka-el.fr dxr1yaor4i; mirror -R dist/ /; quit"
only:
- main
- master