Commit 56bc8013 authored by Florent Chehab's avatar Florent Chehab
Browse files

Test new CI

parent 58abc00d
Pipeline #36159 canceled with stage
in 17 seconds
image: blang/latex
building-latex-master:
build:
image: blang/latex
stage: build
script:
- apt-get update --yes
- apt-get install imagemagick --yes
- apt-get install wget --yes
- bash build.sh get_assets
- bash build.sh make
- make prepare_deploy
artifacts:
paths:
- main.pdf
- latex-rapport-UTC.zip
- main-0.png
- main-1.png
expire_in: 2 year
only:
- master
- deploy
expire_in: 1 hour
# only:
# - master
tags:
- docker
building-latex-other-branch:
stage: build
pages:
stage: deploy
dependencies:
- build
script:
- apt-get update --yes
- apt-get install imagemagick --yes
- apt-get install wget --yes
- bash build.sh get_assets
- bash build.sh make
- mv deploy public
artifacts:
paths:
- main.pdf
- latex-rapport-UTC.zip
- main-0.png
- main-1.png
expire_in: 2 week
except:
- public
expire_in: 1 month
only:
- master
tags:
- docker
\ No newline at end of file
- docker
......@@ -5,7 +5,6 @@ default:
preview: default
convert -density 150 main.pdf -quality 90 main.png
rm -rf export *.png *.zip
archive:
rm -rf build
......@@ -16,6 +15,12 @@ archive:
cd build && zip -r ../latex-rapport-UTC.zip *
prepare_deploy: preview archive
rm -rf deploy
mkdir deploy
cp main.pdf latex-rapport-UTC.zip main-0.png main-1.png deploy/
clean:
latexmk -C
rm -rf build *.png *.zip
rm -rf build deploy *.png *.zip
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment