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
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# requiring the environment of NodeJS 10 ubuntu:18.04
image: node:10
# add 'node_modules' to cache for speeding up builds
cache:
paths:
- node_modules/ # Node modules and dependencies
# Install prerequisite (lftp)
before_script: before_script:
- npm install gitbook-cli -g # install gitbook - apt-get update -qy
- gitbook fetch 3.2.3 # fetch final stable version - apt-get install -y lftp
- gitbook install # add any requested plugins in book.json
test: build:
stage: test
script: script:
- gitbook build . public # build to public path - 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'
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 -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.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter