Commit 1a098a6c authored by Florent Chehab's avatar Florent Chehab
Browse files

Deploy to ftp added

parent 9a02426f
......@@ -2,4 +2,7 @@ analysis.html
.ipynb_checkpoints
proj_env
data
__pycache__
\ No newline at end of file
__pycache__
*.php
UVS_evals
\ No newline at end of file
......@@ -10,8 +10,15 @@ render:
artifacts:
paths:
- analysis.html
expire_in: 1 year
only:
- master
expire_in: 1 week
tags:
- docker
deploy-stage:
stage: deploy
script:
- bash deploy.sh
only:
- master
tags:
- docker
\ No newline at end of file
#!/bin/sh
rm -rf UVS_evals
mkdir UVS_evals
wget https://gitlab.utc.fr/chehabfl/CAS_UTC_PHP/raw/master/cas.php
wget https://gitlab.utc.fr/chehabfl/CAS_UTC_PHP/raw/master/test_login_display.php
cat test_login_display.php > ./UVS_evals/res.php
cat analysis.html >> ./UVS_evals/res.php
cp ./cas.php ./UVS_evals/cas.php
sshpass -p "$CAS_PASSWORD" scp -o StrictHostKeyChecking=no -r ./UVS_evals $CAS_LOGIN@stargate.utc.fr:~/public_html/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment