Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fazeli_Shahroudi-Sepehr-Master’sthesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sepehr Fazeli Shahroudi
Fazeli_Shahroudi-Sepehr-Master’sthesis
Commits
989474bb
Commit
989474bb
authored
5 months ago
by
FAZELI SHAHROUDI Sepehr (INTERN)
Browse files
Options
Downloads
Patches
Plain Diff
Update: improve GitLab CI script with enhanced quoting and error handling for wiki deployment
parent
bb08cefa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
Draft: Review Branch with all changes from main against empty
Pipeline
#53377
failed
5 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-10
13 additions, 10 deletions
.gitlab-ci.yml
with
13 additions
and
10 deletions
.gitlab-ci.yml
+
13
−
10
View file @
989474bb
...
...
@@ -11,11 +11,11 @@ build_pdf:
image
:
texlive/texlive:latest
script
:
-
mkdir -p output
-
pdflatex -interaction=nonstopmode -output-directory=output ${Name}.tex
-
pdflatex -interaction=nonstopmode -output-directory=output ${Name}.tex
-
pdflatex -interaction=nonstopmode -output-directory=output
"
${Name}.tex
"
-
pdflatex -interaction=nonstopmode -output-directory=output
"
${Name}.tex
"
artifacts
:
paths
:
-
output/${Name}.pdf
-
"
output/${Name}.pdf
"
convert_md
:
stage
:
convert
...
...
@@ -26,7 +26,7 @@ convert_md:
-
mkdir -p output_md
-
echo "Listing all .tex files:"
-
find . -name "*.tex"
-
|
-
>
for texfile in $(find . -name "*.tex"); do
if [[ "$(basename "$texfile")" == "${Name}.tex" ]]; then
continue
...
...
@@ -79,16 +79,19 @@ deploy_to_wiki:
-
git config --global user.name "$GITLAB_USER"
-
git config --global user.email "$GITLAB_EMAIL"
script
:
-
echo
"
Cloning the wiki repository
"
-
git clone https://$GITLAB_USER:$GITLAB_TOKEN@mygit.th-deg.de/${CI_PROJECT_PATH}.wiki.git wiki
-
echo
"
Copying Markdown files to wiki
"
-
echo
'
Cloning the wiki repository
'
-
git clone
"
https://$GITLAB_USER:$GITLAB_TOKEN@mygit.th-deg.de/${CI_PROJECT_PATH}.wiki.git
"
wiki
-
echo
'
Copying Markdown files to wiki
'
-
cp -r output_md/* wiki/
-
cd wiki
-
echo
"
Current directory
:
$(pwd)
"
-
echo
"
Listing files in wiki directory
"
-
echo
'
Current directory
:
$(pwd)
'
-
echo
'
Listing files in wiki directory
'
-
ls -la
-
git add .
-
git commit -m "Update Wiki with Thesis - $(date)"
-
|
if ! git commit -m 'Update Wiki with Thesis - $(date)'; then
echo "No changes to commit."
fi
-
git push
only
:
-
main
\ No newline at end of file
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