Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jan Smejkal
Pa165 Secret Archive
Commits
d82660ff
Commit
d82660ff
authored
Mar 15, 2022
by
Juraj Fiala
Browse files
Add PlantUML CI
parent
4b546fa2
Pipeline
#118394
passed with stage
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
d82660ff
default
:
image
:
name
:
plantuml:2.0
entrypoint
:
[
"
/bin/sh"
,
"
-c"
]
tags
:
-
shared-fi
create-diagrams
:
before_script
:
-
apk add --no-cache git
-
git config --global user.name "${GITLAB_USER_NAME}"
-
git config --global user.email "${GITLAB_USER_EMAIL}"
-
mkdir -p docs
script
:
-
java -jar /usr/diagrams/plantuml.jar -failfast -o $(pwd)/docs "*/*.puml"
after_script
:
-
|
git add -f docs/*.png
git commit -m "feat(docs): update-diagrams ✔️" || echo "No changes, nothing to commit!"
git remote rm origin && git remote add origin http://root:$ACCESS_TOKEN@gitlab.fi.muni.cz/$CI_PROJECT_PATH.git
git push origin HEAD:$CI_COMMIT_REF_NAME
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_COMMIT_MESSAGE
!~
/update-diagrams/'
when
:
manual
artifacts
:
paths
:
-
"
docs/*.png"
expire_in
:
7 days
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment