push_minio #2

Merged
lafrite merged 6 commits from push_minio into main 2023-07-19 16:01:58 +00:00
Showing only changes of commit 1883e143b2 - Show all commits

View File

@ -6,9 +6,6 @@ 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
@ -18,12 +15,13 @@ steps:
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="*.odt" --include="*.pdf" --exclude="*" ./ /tosend
- ls /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/content/tosend path: /tosend
settings: settings:
bucket: raw bucket: raw
endpoint: https://storage.opytex.org endpoint: https://storage.opytex.org
@ -67,7 +65,7 @@ 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 ./content/ -o /output -s publishconf.py --relative-urls - pelican ./src/ -o /output -s publishconf.py --relative-urls
- name: Push to bucket opytex.org - name: Push to bucket opytex.org
image: plugins/s3-sync:1 image: plugins/s3-sync:1