Public | Automated Build

Last pushed: 7 months ago
Short Description
Inspired by blang/latex! This image can be used to compile latex projects with Bitbucket Pipelines.
Full Description

This Docker Image can be used in BitBucket pipelines to build your LaTeX projects. To do so, you can configure your bitbucket-pipelines.yml like the following. This assumes that the main latex file is called main.tex.

To use curl to download the main.pdf to your BitBucket downloads folder, use the following guide from BitBucket.

image: kaspersoerensen/latex-docker:latest

pipelines:
  default:
    - step:
        script:
          - pdflatex --shell-escape main.tex # Build once
          - bibtex main # Build bibtex
          - pdflatex -shell-escape main.tex # Build again
          - pdflatex -shell-escape main.tex # And last time
          - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"main.pdf"
Docker Pull Command
Owner
kaspersoerensen
Source Repository

Comments (0)