Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Participating Media Presentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Börcsök Barnabás
Participating Media Presentation
Commits
252f79d5
Commit
252f79d5
authored
2 years ago
by
Börcsök Barnabás
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
4951746f
No related branches found
No related tags found
No related merge requests found
Pipeline
#42217
failed
2 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-23
15 additions, 23 deletions
.gitlab-ci.yml
with
15 additions
and
23 deletions
.gitlab-ci.yml
+
15
−
23
View file @
252f79d5
# This file is a template, and might need editing before it works on your project.
compile_pdf
:
# To contribute improvements to CI/CD templates, please follow the Development guide at:
stage
:
build
# https://docs.gitlab.com/ee/development/cicd/templates.html
image
:
timnn/texlive
# use a Docker image for LaTeX from https://hub.docker.com/
# This specific template is located at:
script
:
pdflatex main.tex
# build the pdf just as you would on your computer
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/LaTeX.gitlab-ci.yml
artifacts
:
paths
:
---
-
main.pdf
# instruct GitLab to keep the main.pdf file
variables
:
# Feel free to choose the image that suits you best.
# blang/latex:latest ... Former image used in this template. No longer maintained by author.
# listx/texlive:2020 ... The default, referring to TexLive 2020. Current at least to 2021-02-02.
# Additional alternatives with high Docker pull counts:
# thomasweise/docker-texlive-full
# thomasweise/texlive
# adnrv/texlive
LATEX_IMAGE
:
listx/texlive:2020
build
:
pages
:
im
age
:
$LATEX_IMAGE
st
age
:
deploy
script
:
script
:
-
latexmk -pdf
-
mkdir public
# create a folder called public
-
cp main.pdf public
# copy the pdf file into the public folder
artifacts
:
artifacts
:
paths
:
paths
:
-
"
*.pdf"
-
public
# instruct GitLab to keep the public folder
only
:
-
main
# deploy the pdf only for commits made to the main branch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment