add CI
This commit is contained in:
parent
393267e616
commit
564de71d47
1 changed files with 26 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
stages:
|
||||
- build and deploy
|
||||
|
||||
build and deploy:
|
||||
stage: build and deploy
|
||||
only:
|
||||
- main
|
||||
image: node:18
|
||||
before_script:
|
||||
- apt-get update -qq && apt-get install -y -qq lftp
|
||||
script:
|
||||
- npm ci
|
||||
- npm run build
|
||||
- |
|
||||
lftp -c "
|
||||
set ftp:ssl-allow no; # Désactive SSL si nécessaire
|
||||
open -u $USERNAME,$PASSWORD $HOST; # Connexion au serveur
|
||||
mirror --reverse --verbose --ignore-time --parallel=10
|
||||
-x local/
|
||||
-x accounts/
|
||||
-x cache/
|
||||
-x sessions/
|
||||
dist/site site;
|
||||
mirror --reverse --verbose --ignore-time --parallel=10
|
||||
dist/assets assets
|
||||
quit"
|
||||
Loading…
Add table
Add a link
Reference in a new issue