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

Merge branch '101-autogenerate-uml-diagrams' into 'develop'

Resolve "Autogenerate UML Diagrams"

See merge request cocsn/gosdn!134
parents ac2bbb70 79373e94
Branches
Tags
9 merge requests!246Develop,!245Develop into Master,!244Master into develop2 into master,!219Draft: Testing,!214Test pipelines,!195DO NOT MERGE 2,!194DO NOT MERGE! just for testing,!138Develop,!134Resolve "Autogenerate UML Diagrams"
Pipeline #68842 passed
...@@ -21,4 +21,5 @@ include: ...@@ -21,4 +21,5 @@ include:
- local: '/build/ci/.build-container.yml' - local: '/build/ci/.build-container.yml'
- local: '/build/ci/.test.yml' - local: '/build/ci/.test.yml'
- local: '/build/ci/.terraform-ci.yml' - local: '/build/ci/.terraform-ci.yml'
- local: '/build/ci/.deploy-k8s.yml' - local: '/build/ci/.deploy-k8s.yml'
\ No newline at end of file - 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.
Please register or to comment