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
|
image: registry.gitlab.com/islandoftex/images/texlive:latest
|
||||||
commands:
|
commands:
|
||||||
- pdflatex --shell-escape cv.tex
|
- 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
|
- cat cv.log
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
|
|
@ -21,22 +22,23 @@ steps:
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
# Set the GIT_SSH_COMMAND to use the SSH key
|
# 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"
|
- 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
|
# Clone the repository via SSH inside a new directory
|
||||||
- git clone "${CI_REPO_CLONE_SSH_URL}" "${CI_COMMIT_SHA}"
|
- git clone "${CI_REPO_CLONE_SSH_URL}" repo
|
||||||
|
|
||||||
# Set the displayed user with the commits that are about to be made
|
# 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.email "${CI_COMMIT_AUTHOR_EMAIL:-$CI_COMMIT_AUTHOR_EMAIL}"
|
||||||
- git config --global user.name "${CI_COMMIT_AUTHOR:-$CI_COMMIT_AUTHOR}"
|
- 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
|
# Go to the repository directory
|
||||||
- cd "${CI_COMMIT_SHA}"
|
- cd repo
|
||||||
- pwd
|
- pwd
|
||||||
- ls
|
- ls
|
||||||
|
|
||||||
# Add all generated files to Git
|
# Add all generated files to Git
|
||||||
- git add -f *.pdf
|
- git add -f cv.pdf
|
||||||
- git status
|
- git status
|
||||||
- |-
|
- |-
|
||||||
# Check if we have modifications to commit
|
# Check if we have modifications to commit
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue