GithubHelp home page GithubHelp logo

leventebajczi / document-converter-actions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ftsrg/document-converter-actions

0.0 1.0 0.0 24 KB

GitHub Actions for building LaTeX and Markdown documents

Shell 17.67% Dockerfile 82.33%

document-converter-actions's Introduction

document-converter-actions

GitHub Actions for building LaTeX and Markdown documents using a Makefile.

Usages

Used in our private repositories to build syllabi for the Systems Modelling course and various laboratory classes.

Base image

The Docker image is built based on the configuration in document-converter and it is deployed on GitHub Container Registry.

To build the image, navigate to the document-converter directory.

cd document-converter
docker build -t ghcr.io/ftsrg/document-converter:2022-v20230319 .
docker tag ghcr.io/ftsrg/document-converter:2022-v20230319 ghcr.io/ftsrg/document-converter:2022
docker tag ghcr.io/ftsrg/document-converter:2022 ghcr.io/ftsrg/document-converter:latest

To deploy the image on GitHub Container Registry, run:

echo $PAT | docker login ghcr.io -u <user> --password-stdin # PAT must have {read,write,delete}:packages scopes enabled
docker push ghcr.io/ftsrg/document-converter:2022-v20230319
docker push ghcr.io/ftsrg/document-converter:2022
docker push ghcr.io/ftsrg/document-converter:latest

Local usage

To use this Docker image, create a Makefile that performs the required build steps. Then, test the image as follows;

docker run --rm -v `pwd`:"/github/workspace" ghcr.io/ftsrg/document-converter:2022 [arguments]

The [arguments] are optional and are passed to the Makefile.

Usage with GitHub Actions

Create a .yml workflow file in your repository under .github/workflows/. For example, to run make ci, use the following configuration:

jobs:
  job_name:
    runs-on: ...
    name: ...
    steps:
    - name: Build PDFs with the LaTeX engine in Docker
      uses: ghcr.io/ftsrg/document-converter-actions@2022
      with:
        makefile-arguments: ci

document-converter-actions's People

Contributors

szarnyasg avatar marci543 avatar leventebajczi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.