Compare commits

..

8 Commits

Author SHA1 Message Date
ec821d1e3c Feat: drone.yml for 2019-2020
Some checks failed
continuous-integration/drone/push Build is failing
2020-08-05 09:36:14 +02:00
528f8c807b Feat: New pipeline for 2019-2020 2020-08-05 09:36:14 +02:00
bb39706e4c Fix: Spelling once again! 2020-08-05 09:36:14 +02:00
22d4b1cfae Fix: directory spelling 2020-08-05 09:36:14 +02:00
5f2bf02388 Fix: Good directory to push! 2020-08-05 09:36:14 +02:00
ce836d1692 Fix: remove double apk 2020-08-05 09:36:14 +02:00
32d0f9c0fc Fix: install rsync in drone.yml 2020-08-05 09:36:14 +02:00
560eaddafd Fix: upgrade MarkupSafe 2020-08-05 09:36:14 +02:00
2 changed files with 29 additions and 1 deletions

28
.drone.yml Normal file
View File

@ -0,0 +1,28 @@
kind: pipeline
name: Opytex 2019-2020
type: docker
trigger:
branch:
- 2019-2020
steps:
- name: Deploy
image: python:3.8-alpine
commands:
- echo "Trigger from branch"
- git clone https://git.opytex.org/lafrite/2019-2020.git content
- pip install --no-cache-dir -r requirements.txt
- pelican ./content/ -o output -s publishconf.py --relative-urls
- apk add --no-cache openssh-client ca-certificates bash rsync
- echo Début du Push
- eval `ssh-agent -s`
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv --delete -e "ssh -p 22" ./output/ sshcontent@91.121.90.228:~/raw.opytex.org/www/2019-2020/ --checksum
environment:
SSH_KEY:
from_secret: sshcontent-key

View File

@ -2,7 +2,7 @@ blinker==1.4
docutils==0.13.1 docutils==0.13.1
feedgenerator==1.9 feedgenerator==1.9
Jinja2==2.9.6 Jinja2==2.9.6
MarkupSafe==1.0 MarkupSafe==1.1.1
pelican==3.7.1 pelican==3.7.1
Pygments==2.2.0 Pygments==2.2.0
python-dateutil==2.6.0 python-dateutil==2.6.0