commit 7e766375656c2906515b085ae34baad7668a6567 Author: Arindy Date: Sun Sep 21 13:24:04 2025 +0200 Initial commit diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..5e1c033 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,37 @@ +name: CI +on: + push: + tags: + - '*' + pull_request: + +jobs: + deploy: + env: + REPO: ${{ github.event.repository.name }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - id: version + name: Version + run: | + if [ "${{ github.ref_type }}" = 'tag' ]; then + newVersion="${{ github.ref_name }}" + else + newVersion=$(git describe --tags --abbrev=0 2>/dev/null || echo 0.0.0).dev + fi + echo "version=$newVersion" >> "$GITHUB_OUTPUT" + + - name: Build + run: | + docker build -t git.arindy.de/arindy/latex-runner:${{ steps.version.outputs.version }} . + + - name: Push + if: ${{ github.ref_type == 'tag' }} + run: | + echo ${{secrets.PACKAGES_TOKEN}} | docker login --username ${{ secrets.PACKAGES_USER }} --password-stdin git.arindy.de + docker push git.arindy.de/arindy/latex-runner:${{ steps.version.outputs.version }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd011fc --- /dev/null +++ b/.gitignore @@ -0,0 +1,81 @@ +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +.idea +*.iml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e14cc0f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM ghcr.io/catthehacker/ubuntu:runner-22.04 + +RUN sudo apt update +RUN sudo apt install -y --fix-missing texlive-latex-base texlive-latex-extra pandoc