Skip to content
Snippets Groups Projects
Commit e0249d0f authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

Merge branch 'develop' into 99-commit-confirm-mechanic-for-ond-changes

parents 7f7ae7e9 43cc6b00
No related branches found
No related tags found
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,!147Commit-Confirm Mechanic for PND,!138Develop
...@@ -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