Fixing CI ?
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Louis 2025-04-08 16:53:03 +02:00
parent 2e0a2d9602
commit 448557d7e8

View file

@ -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