Skip to content
Snippets Groups Projects

ci(.gitlab-ci): use Docker images for builds

1 file
+ 16
4
Compare changes
  • Side-by-side
  • Inline
+ 16
4
@@ -3,6 +3,7 @@ image: python:3.13-slim
@@ -3,6 +3,7 @@ image: python:3.13-slim
stages:
stages:
- prebuild
- prebuild
 
- pdf
- build
- build
- deploy
- deploy
- deploy-pages
- deploy-pages
@@ -14,16 +15,27 @@ variables:
@@ -14,16 +15,27 @@ variables:
prebuild:
prebuild:
before_script:
before_script:
- apt-get update && apt-get install -y pandoc python3-pip texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
- apt-get update && apt-get install -y python3-pip
- python3 -m pip install poetry
- python3 -m pip install poetry
- pandoc -v
- poetry --version
- poetry --version
stage: prebuild
stage: prebuild
script: |
script: |
# Run the build script
# Run the build script
./build.sh
./build.sh
echo "Generate Decks as PDF with Pandoc. It is generated as a backup."
artifacts:
pandoc -t beamer $PREBUILD_OUTPUT/fvv-folien-deck.md -o $PREBUILD_OUTPUT/fvv-folien.pdf
paths:
 
- $PREBUILD_OUTPUT
 
expire_in: "1 hour"
 
 
pdf:
 
image: registry.gitlab.fachschaften.org/robinst/pandoc-image:latest
 
stage: pdf
 
dependencies:
 
- prebuild
 
script:
 
- echo "Generate Decks as PDF with Pandoc. It is generated as a backup."
 
- pandoc -t beamer $PREBUILD_OUTPUT/fvv-folien-deck.md -o $PREBUILD_OUTPUT/fvv-folien.pdf
 
- ls
artifacts:
artifacts:
paths:
paths:
- $PREBUILD_OUTPUT
- $PREBUILD_OUTPUT
Loading