Compare commits

..

No commits in common. "main" and "472675ff16534107f38c08a38d66d5cd536be4f2" have entirely different histories.

3 changed files with 18 additions and 76 deletions

View File

@ -1,34 +0,0 @@
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,25 +1,26 @@
FROM texlive/texlive:latest FROM debian:buster-slim
ARG PANDOC_VERSION=3.1.4 ARG PANDOC_VERSION=2.11.4
ARG PANDOC_CROSSREF_VERSION=v0.3.16.0b ARG PANDOC_CROSSREF_VERSION=v0.3.9.1
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 \
RUN mkdir download \ && mkdir download \
&& cd download && cd download \
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/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.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 && 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 \ && 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 \
RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \ && 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 \
RUN apt-get install -y python3-pygments python3-pip inkscape && apt-get install -y \
RUN tlmgr update --self --all git \
RUN tlmgr install tools ragged2e texlive-full \
RUN rm -rf /var/lib/apt/lists/* python-pygments \
python3-pygments \
&& rm -rf /var/lib/apt/lists/*

View File

@ -1,25 +0,0 @@
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/*