Update CI
Some checks failed
Build and Release PDF / builder (push) Failing after 6m19s
Build and Release PDF / release (push) Has been skipped

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-14 15:35:21 +01:00
parent ccb62ab87c
commit 6e72589ebe
2 changed files with 41 additions and 19 deletions

9
.gitea/Containerfile Normal file
View File

@@ -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

View File

@@ -5,33 +5,46 @@ on:
branches: branches:
- "**" - "**"
env:
BUILDER_IMAGE: git.karaolidis.com/karaolidis/cv/builder:latest
jobs: jobs:
builder:
runs-on: nix
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Pull Builder Cache
run: |
buildah pull $BUILDER_IMAGE || true
- name: Build Builder Image
run: |
buildah bud --layers -f .gitea/Containerfile -t $BUILDER_IMAGE .
- name: Push Builder Image
run: |
echo "${{ secrets.GITEA_REGISTRY_PASSWORD }}" | buildah login -u "${{ secrets.GITEA_REGISTRY_USER }}" --password-stdin git.karaolidis.com
skopeo copy \
containers-storage:$BUILDER_IMAGE \
docker://$BUILDER_IMAGE
release: release:
runs-on: ubuntu-latest runs-on: nix
needs: builder
container:
image: ${{ env.BUILDER_IMAGE }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 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 - name: Compile PDF
run: | run: xelatex main.tex
xelatex main.tex
- name: Release - name: Release
uses: https://github.com/akkuman/gitea-release-action@main uses: https://github.com/akkuman/gitea-release-action@main
with: with:
name: "Release ${{github.sha}}" name: "Release ${{ github.sha }}"
tag_name: "release-${{github.sha}}" tag_name: "release-${{ github.sha }}"
files: |- files: main.pdf
main.pdf