diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b0a0b6602aee42e9cf87630d4bf50bf315be1dc..5656a5d8f458b45ed062ff808aa25f5c8142d9c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,33 +1,11 @@ -# 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' diff --git a/bde.iiens.net/testfile b/bde.iiens.net/testfile new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/test.sh b/test.sh new file mode 100644 index 0000000000000000000000000000000000000000..88e68f4ee7ac2d0b0b3948756e25b6dc2514c679 --- /dev/null +++ b/test.sh @@ -0,0 +1 @@ +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'