Commit d82660ff authored by Juraj Fiala's avatar Juraj Fiala
Browse files

Add PlantUML CI

parent 4b546fa2
Pipeline #118394 passed with stage
in 9 seconds
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment