From de28578d704997e55ce1ed41a69057b1f4efa93f Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 5 Aug 2020 13:57:54 +0200 Subject: [PATCH] Feat: trick to clone at . --- .drone.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 35a2d51..a8ca039 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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