From 4057ed7b2253ead2c824621fc21e7be6e2795d67 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Sun, 14 Sep 2025 16:12:59 +0100 Subject: [PATCH] Update CI Signed-off-by: Nikolaos Karaolidis --- .gitea/Containerfile | 9 +++++++++ .gitea/workflows/main.yaml | 38 +++++++++++++++++++------------------- 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 .gitea/Containerfile diff --git a/.gitea/Containerfile b/.gitea/Containerfile new file mode 100644 index 0000000..ba5c7bb --- /dev/null +++ b/.gitea/Containerfile @@ -0,0 +1,9 @@ +FROM ghcr.io/catthehacker/ubuntu:act-latest + +RUN apt-get update && apt-get install -y texlive-xetex texlive-science texlive-fonts-extra +RUN wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Regular.ttf && \ + wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Bold.ttf && \ + wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Italic.ttf && \ + wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-BoldItalic.ttf && \ + wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Light.ttf +RUN fc-cache -fv diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 0228717..0a4a15c 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -5,33 +5,33 @@ on: branches: - "**" +env: + BUILDER_IMAGE: git.karaolidis.com/karaolidis/cv/builder:latest + jobs: + builder: + uses: karaolidis/workflows/.gitea/workflows/builder.yaml@main + with: + image: ${{ env.BUILDER_IMAGE }} + secrets: + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_PASSWORD }} + release: - runs-on: ubuntu-latest + runs-on: nix + needs: builder + container: + image: ${{ needs.builder.outputs.tag }} steps: - name: Checkout uses: actions/checkout@v3 - - name: Install LaTeX (XeLaTeX) - run: | - apt-get update - apt-get install -y texlive-xetex texlive-science texlive-fonts-extra - - wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Regular.ttf - wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Bold.ttf - wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Italic.ttf - wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-BoldItalic.ttf - wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Light.ttf - fc-cache -fv - - name: Compile PDF - run: | - xelatex main.tex + run: xelatex main.tex - name: Release uses: https://github.com/akkuman/gitea-release-action@main with: - name: "Release ${{github.sha}}" - tag_name: "release-${{github.sha}}" - files: |- - main.pdf + name: "Release ${{ github.sha }}" + tag_name: "release-${{ github.sha }}" + files: main.pdf