Feat: trick to clone at .
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fef19591d0
commit
de28578d70
14
.drone.yml
14
.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
|
||||
|
Loading…
Reference in New Issue
Block a user