Skip to content
Extraits de code Groupes Projets
Valider 6297c247 rédigé par Rémi HUGUET's avatar Rémi HUGUET
Parcourir les fichiers

add ci

parent af601165
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# requiring the environment of NodeJS 10
image: node:10
ubuntu:18.04
# add 'node_modules' to cache for speeding up builds
cache:
paths:
- node_modules/ # Node modules and dependencies
# Install prerequisite (lftp)
before_script:
- npm install gitbook-cli -g # install gitbook
- gitbook fetch 3.2.3 # fetch final stable version
- gitbook install # add any requested plugins in book.json
- apt-get update -qy
- apt-get install -y lftp
test:
stage: test
build:
script:
- gitbook build . public # build to public path
only:
- branches # this job will affect every branch except 'master'
except:
- master
# the 'pages' job will deploy and build your site to the 'public' path
pages:
stage: deploy
script:
- gitbook build . public # build to public path
artifacts:
paths:
- public
expire_in: 1 week
only:
- master # this job will affect only the 'master' branch
- lftp -e 'set sftp:connect-program "ssh -a -x -i $PRIVATE_KEY"; connect sftp://aeiie@perso.iiens.net; mirror -X .* -X .*/ --reverse --verbose --delete bde.iiens.net/ /home/users/assoces/aeiie/html/web/test; UpdateFinished'
lftp -c 'set sftp:connect-program ssh -a -x -i /mnt/d/Program/PUTTY/key/bde_openssh_key_private_nopass; connect sftp://aeiie@perso.iiens.net; mirror -eR -X .* -X .*/ --reverse --verbose --delete bde.iiens.net/ /home/users/assoces/aeiie/html/web/test; UpdateFinished'
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter