Skip to content
Snippets Groups Projects
Commit e7360892 authored by Malte Bauch's avatar Malte Bauch
Browse files

Merge branch 101-autogenerate-uml-diagrams with refs/heads/develop into...

Merge branch 101-autogenerate-uml-diagrams with refs/heads/develop into refs/merge-requests/134/train
parents ac2bbb70 79373e94
No related branches found
No related tags found
No related merge requests found
Pipeline #68840 passed
......@@ -21,4 +21,5 @@ include:
- local: '/build/ci/.build-container.yml'
- local: '/build/ci/.test.yml'
- local: '/build/ci/.terraform-ci.yml'
- local: '/build/ci/.deploy-k8s.yml'
\ No newline at end of file
- local: '/build/ci/.deploy-k8s.yml'
- local: '/build/ci/.uml-autogen-ci.yml'
goplantuml:
image: golang:1.14
stage: .post
only:
- develop
when: manual
variables:
FILENAME: "home.md"
WIKI_URL: "${CI_SERVER_PROTOCOL}://project_${CI_PROJECT_ID}_bot3:${GOPLANTUML_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/${CI_PROJECT_PATH}.wiki.git"
script:
# install goplantuml
- go get github.com/jfeliu007/goplantuml/cmd/goplantuml
# remove old wiki folder
- rm -rf "/tmp/${CI_PROJECT_NAME}.wiki"
# clone and move to wiki folder
- cd /tmp
- git clone "${WIKI_URL}"
- cd "${CI_PROJECT_NAME}.wiki"
- echo '```plantuml' > "$FILENAME"
# run goplantuml
- goplantuml "${CI_PROJECT_DIR}/nucleus/" >> "$FILENAME"
- echo '```' >> "$FILENAME"
# git commit
- git config user.name "$GITLAB_USER_NAME"
- git config user.email "$GITLAB_USER_EMAIL"
- git add "$FILENAME"
- git commit -m "Auto-updated UML diagram via goplantuml CI job"
- git push origin "HEAD:master"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment