Compare commits
No commits in common. "5f39549ea4d480e5cdae8677713cc29412863882" and "88aeb2bdc88dc49e247d5ad1a741599453c4c2f5" have entirely different histories.
5f39549ea4
...
88aeb2bdc8
21
.drone.yml
21
.drone.yml
@ -6,6 +6,9 @@ type: docker
|
|||||||
clone:
|
clone:
|
||||||
skip_verify: true
|
skip_verify: true
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: /drone/content/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clean before push
|
- name: Clean before push
|
||||||
image: alpine
|
image: alpine
|
||||||
@ -14,22 +17,13 @@ steps:
|
|||||||
path: /tosend
|
path: /tosend
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache rsync
|
- apk add --no-cache rsync
|
||||||
- >
|
- rsync -am --include="*/" --include="*.odt" --include="*.pdf" --exclude="*" ./ /tosend
|
||||||
rsync -am --include="*/"
|
|
||||||
--include="*.html"
|
|
||||||
--include="*.css"
|
|
||||||
--include="*.png"
|
|
||||||
--include="*.jpg"
|
|
||||||
--include="*.odt"
|
|
||||||
--include="*.pdf"
|
|
||||||
--exclude="*"
|
|
||||||
./ /tosend
|
|
||||||
|
|
||||||
- name: Push bucket Raw
|
- name: Push bucket Raw
|
||||||
image: plugins/s3-sync:1
|
image: plugins/s3-sync:1
|
||||||
volumes:
|
volumes:
|
||||||
- name: tosend
|
- name: tosend
|
||||||
path: /drone/src/tosend
|
path: /drone/content/tosend
|
||||||
settings:
|
settings:
|
||||||
bucket: raw
|
bucket: raw
|
||||||
endpoint: https://storage.opytex.org
|
endpoint: https://storage.opytex.org
|
||||||
@ -73,14 +67,13 @@ steps:
|
|||||||
- git submodule update
|
- git submodule update
|
||||||
- pip install --no-cache-dir -r requirements.txt
|
- pip install --no-cache-dir -r requirements.txt
|
||||||
- export MAGICK_HOME=/usr
|
- export MAGICK_HOME=/usr
|
||||||
- pelican ./src/ -o /output -s publishconf.py --relative-urls
|
- pelican ./content/ -o /output -s publishconf.py --relative-urls
|
||||||
- ls /output
|
|
||||||
|
|
||||||
- name: Push to bucket opytex.org
|
- name: Push to bucket opytex.org
|
||||||
image: plugins/s3-sync:1
|
image: plugins/s3-sync:1
|
||||||
volumes:
|
volumes:
|
||||||
- name: pelican-output
|
- name: pelican-output
|
||||||
path: /drone/src/output
|
path: /drone/content/output
|
||||||
settings:
|
settings:
|
||||||
bucket: opytex.org
|
bucket: opytex.org
|
||||||
endpoint: https://storage.opytex.org
|
endpoint: https://storage.opytex.org
|
||||||
|
Loading…
Reference in New Issue
Block a user