Compare commits
8 Commits
e30ede21cf
...
ec821d1e3c
Author | SHA1 | Date | |
---|---|---|---|
ec821d1e3c | |||
528f8c807b | |||
bb39706e4c | |||
22d4b1cfae | |||
5f2bf02388 | |||
ce836d1692 | |||
32d0f9c0fc | |||
560eaddafd |
28
.drone.yml
Normal file
28
.drone.yml
Normal 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
|
||||||
|
|
||||||
|
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user