Feat: trick to clone at .
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Bertrand Benjamin 2020-08-05 13:57:54 +02:00
parent fef19591d0
commit de28578d70
1 changed files with 8 additions and 6 deletions

View File

@ -7,19 +7,21 @@ workspace:
path: /drone/content/
steps:
- name: Build and Push Opytex
- name: Build Opytex
image: python:3.8-alpine
commands:
- apk add --no-cache openssh-client ca-certificates bash rsync git imagemagick
- apk add --no-cache git imagemagick
- cd ..
- git clone https://git.opytex.org/lafrite/site_opytex.git
- cd site_opytex
- git init .
- git remote add origin https://git.opytex.org/lafrite/site_opytex.git
- git pull origin master
- git submodule init
- git submodule update
- pip install --no-cache-dir -r requirements.txt
- export MAGICK_HOME=/usr
- ln -s ../content ./content
- pelican ./content/ -o output -s publishconf.py --relative-urls
- pelican content/ -o output -s publishconf.py --relative-urls
- apk add --no-cache openssh-client ca-certificates bash rsync
- eval `ssh-agent -s`
- echo "$SSH_KEY" | ssh-add -
- mkdir -p ~/.ssh