Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EEA
M1-EEA
Commits
42dc9565
Commit
42dc9565
authored
Jun 25, 2019
by
Pierre-antoine Comby
Browse files
switch to scp
parent
70d8c49e
Pipeline
#1291
passed with stage
in 2 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
42dc9565
...
...
@@ -5,11 +5,18 @@ deploy:
variables
:
USER
:
"
gitlab-runner"
before_script
:
-
apt-get update -qy
-
apt-get install -y lftp
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
echo "$SSH_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan zamok.crans.org >> ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
script
:
-
make all -j8
# build the pdf
-
lftp -e "set ftp:ssl-allow
false
; set sftp:auto-confirm yes; mirror -R public www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD sftp://zamok.crans.org
-
scp -r public comby@zamok.crans.org:www/m1-eea
# - lftp -e "set ftp:ssl-allow false; set sftp:auto-confirm yes; mirror -R public www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD sftp://zamok.crans.org
only
:
-
master
# deploy the pdf only for commits made to the master branch
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment