now this does it all in one spot i think

This commit is contained in:
Ryan Voots 2024-02-18 12:43:48 -05:00
parent d134bd16e7
commit 2448f4979d
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ steps:
#- ./:/data #- ./:/data
commands: commands:
- ./md-render-container/render_image.sh RULES.md - ./md-render-container/render_image.sh RULES.md
- ls -lah /tmp - ls -lah
- name: upload - name: upload
image: woodpeckerci/plugin-s3 image: woodpeckerci/plugin-s3
settings: settings:

View file

@ -7,5 +7,5 @@ PDF_FILE="${IN_FILE/.md/.pdf}"
OUT_FILE="${IN_FILE/.md/.png}" OUT_FILE="${IN_FILE/.md/.png}"
pandoc $IN_FILE -V papersize:a4 -o /tmp/$PDF_FILE pandoc $IN_FILE -V papersize:a4 -o /tmp/$PDF_FILE
gm convert -density 144 -page a4 /tmp/$PDF_FILE -background white -trim -bordercolor white -border 25 /tmp/$OUT_FILE gm convert -density 144 -page a4 /tmp/$PDF_FILE -background white -trim -bordercolor white -border 25 $OUT_FILE