From c2d1908f15882ae7ce2d99c23cdbc4ab041af829 Mon Sep 17 00:00:00 2001 From: Aada Date: Tue, 18 Jun 2024 11:51:57 +0200 Subject: Fix CI and tidy code --- .gitlab-ci.yml | 39 ++++++++++++++++----------------------- 1 file changed, 16 insertions(+), 23 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33d01fb..3c8dafa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,34 +1,27 @@ stages: - - build-env - - build-doc + - build-pdf + - build-svg -variables: - CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest - TARGET_BASE: $CLOUD_CI_URL/Documents/$CI_PROJECT_NAMESPACE - -# Build the build environment for this document -build-env: - stage: build-env - image: quay.io/podman/stable +build-final: + stage: build-pdf + image: registry.gitlab.com/containers.ada/tectonic script: - - podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - - podman build -t $CONTAINER_RELEASE_IMAGE . - - podman push $CONTAINER_RELEASE_IMAGE + - tectonic heidelberg.tex + artifacts: + paths: + - heidelberg.pdf rules: - changes: - - Containerfile + - "*.tex" -# Build the document and store artefacts -build-final: - stage: build-doc - image: $CONTAINER_RELEASE_IMAGE +build-svg: + stage: build-svg + image: registry.gitlab.com/containers.ada/pdf2svg script: - - lualatex heidelberg.tex - - inkscape --export-filename=heidelberg.png --export-dpi=300 --export-background=white + - pdf2svg heidelberg.svg artifacts: paths: - - heidelberg.pdf - - heidelberg.png + - heidelberg.svg rules: - changes: - - *.tex + - "*.tex" -- cgit v1.2.3