Compare commits

...

15 Commits

Author SHA1 Message Date
0067dcaf5a Tag each image with current datetime
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-03 17:41:44 +02:00
bdeb649e45 Change base image, upgrade pandoc and ensure newest version of dependencies 2023-07-03 17:35:01 +02:00
a32901dc3a Add latexmk
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-30 14:51:36 +02:00
f776bfbdba Don't use latex full
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-30 14:14:52 +02:00
b2c519bed2 Update to newest version of pygments
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-30 06:17:10 +00:00
3a7eadd174 Disable build for arm64 for now
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-06-09 05:51:38 +00:00
8455fa1bdb Clean apt cache in advance
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-05 06:17:11 +00:00
94a7251db0 Add inkscape dependency
Some checks failed
continuous-integration/drone/push Build is failing
2023-06-05 06:13:45 +00:00
ec2eb8386d Update to current version of pandoc
Some checks failed
continuous-integration/drone/push Build is failing
2023-01-27 12:51:47 +01:00
9e3266e085 Use correct dockerfile for arm64 build
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-01-27 12:45:49 +01:00
81c0652411 Also build image for arm64
Some checks failed
continuous-integration/drone/push Build is failing
2023-01-27 10:51:29 +01:00
534958407f Change pipeline type back to Docker
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-06 10:22:29 +00:00
7f44edfa31 Change pipeline type to Kubernetes
Some checks failed
continuous-integration/drone/push Build is failing
2022-01-29 16:10:19 +00:00
7ce9a4c259
Improve dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-14 16:22:57 +02:00
638e9f7d46
Add drone ci integration
Some checks reported errors
continuous-integration/drone Build was killed
2021-10-14 15:57:09 +02:00
3 changed files with 76 additions and 18 deletions

34
.drone.yml Normal file
View File

@ -0,0 +1,34 @@
kind: pipeline
type: docker
name: build
steps:
- name: generate-tags
image: node
commands:
- echo -n "$(date +'%Y-%m-%d_%H-%M'), latest" > .tags
- name: docker
image: plugins/docker
depends_on:
- clone
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: kingofdog/pandoc-latex
#- name: docker-arm64
# image: plugins/docker
# depends_on:
# - clone
# settings:
# platform: linux/arm64
# dockerfile: Dockerfile.arm64
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
# repo: kingofdog/pandoc-latex
# tags:
# - latest

View File

@ -1,26 +1,25 @@
FROM debian:buster-slim FROM texlive/texlive:latest
ARG PANDOC_VERSION=2.11.4 ARG PANDOC_VERSION=3.1.4
ARG PANDOC_CROSSREF_VERSION=v0.3.9.1 ARG PANDOC_CROSSREF_VERSION=v0.3.16.0b
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get clean
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y wget xz-utils \ && apt-get install -y wget xz-utils
&& mkdir download \ RUN mkdir download \
&& cd download \ && cd download
&& wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz \ RUN wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz
&& wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz \ RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
&& ls -l \ RUN ls -l \
&& tar xf pandoc.tar.gz \ && tar xf pandoc.tar.gz \
&& tar xf pandoc-crossref.tar.xz \ && tar xf pandoc-crossref.tar.xz \
&& ls -l \ && ls -l
&& mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \ RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
&& mv pandoc-crossref /usr/bin/ \ && mv pandoc-crossref /usr/bin/ \
&& cd .. \ && cd .. \
&& rm -rf download \ && rm -rf download
&& apt-get install -y \ RUN apt-get install -y python3-pygments python3-pip inkscape
git \ RUN tlmgr update --self --all
texlive-full \ RUN tlmgr install tools ragged2e
python-pygments \ RUN rm -rf /var/lib/apt/lists/*
python3-pygments \
&& rm -rf /var/lib/apt/lists/*

25
Dockerfile.arm64 Normal file
View File

@ -0,0 +1,25 @@
FROM arm64v8/debian:bullseye-slim
ARG PANDOC_VERSION=3.0.1
ARG PANDOC_CROSSREF_VERSION=v0.3.15.0
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y wget xz-utils
RUN mkdir download \
&& cd download
RUN wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-arm64.tar.gz -O pandoc.tar.gz
RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
RUN ls -l \
&& tar xf pandoc.tar.gz \
&& tar xf pandoc-crossref.tar.xz \
&& ls -l
RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
&& mv pandoc-crossref /usr/bin/ \
&& cd .. \
&& rm -rf download
RUN apt-get install -y \
git \
texlive-full \
python3-pygments
RUN rm -rf /var/lib/apt/lists/*