This commit is contained in:
parent
2e0a2d9602
commit
448557d7e8
1 changed files with 8 additions and 6 deletions
|
|
@ -7,6 +7,7 @@ steps:
|
|||
image: registry.gitlab.com/islandoftex/images/texlive:latest
|
||||
commands:
|
||||
- pdflatex --shell-escape cv.tex
|
||||
- pdflatex --shell-escape cv.tex # Exécuter deux fois pour gérer les références croisées
|
||||
- cat cv.log
|
||||
|
||||
- name: deploy
|
||||
|
|
@ -21,22 +22,23 @@ steps:
|
|||
- chmod 644 ~/.ssh/known_hosts
|
||||
# Set the GIT_SSH_COMMAND to use the SSH key
|
||||
- export GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
||||
# Clone the repository via HTTPS inside a new directory
|
||||
- git clone "${CI_REPO_CLONE_SSH_URL}" "${CI_COMMIT_SHA}"
|
||||
# Clone the repository via SSH inside a new directory
|
||||
- git clone "${CI_REPO_CLONE_SSH_URL}" repo
|
||||
|
||||
# Set the displayed user with the commits that are about to be made
|
||||
- git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL:-$CI_COMMIT_AUTHOR_EMAIL}"
|
||||
- git config --global user.name "${CI_COMMIT_AUTHOR:-$CI_COMMIT_AUTHOR}"
|
||||
|
||||
- mv *.pdf "${CI_COMMIT_SHA}/"
|
||||
# Move the generated PDF to the repository directory
|
||||
- mv cv.pdf repo/
|
||||
|
||||
# Go to the new directory
|
||||
- cd "${CI_COMMIT_SHA}"
|
||||
# Go to the repository directory
|
||||
- cd repo
|
||||
- pwd
|
||||
- ls
|
||||
|
||||
# Add all generated files to Git
|
||||
- git add -f *.pdf
|
||||
- git add -f cv.pdf
|
||||
- git status
|
||||
- |-
|
||||
# Check if we have modifications to commit
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue