Skip to content
Snippets Groups Projects
Commit 5b6a300d authored by michael.minelli's avatar michael.minelli
Browse files

CI/CD => Add for auto commit of the readme

parent b884b5de
No related branches found
No related tags found
No related merge requests found
Pipeline #29833 passed
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_FORCE_HTTPS: "true"
SECURE_FILES_DOWNLOAD_PATH: './'
DOC_CHANGELOG_FILE: ZolaApp/content/changelog/1_global.md
DOC_FILE_BEGIN: |
+++
title = "The Dojo Project"
description = "Global changelog of The Dojo Project."
slug = "global"
weight = 1
template = "docs/page.html"
[extra]
lead = "Global changelog of The Dojo Project."
toc = true
top = false
+++
stages:
- release
release:doc:changelog:
stage: release
tags:
- release
image: ubuntu:latest
script:
# Install dependencies
- apt-get update -y
- apt-get install -y openssh-client git unzip sshpass --fix-missing
# Add SSH key
- eval `ssh-agent -s`
- echo "$DOC_GIT_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$DOC_GIT_SSH_PUBLIC_KEY" >> ~/.ssh/id_rsa.pub
- echo "$DOC_GIT_SSH_PRIVATE_KEY" >> ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# Set git config
- git config --global user.email "dojo@minelli.me"
- git config --global user.name "[Gitlab CI/CD] DojoProject"
# Pull repo
- git clone ssh://git@ssh.hesge.ch:10572/dojo_project/projects/ui/dojodoc.git
# Do something after pulling your repo
- echo "${DOC_FILE_BEGIN}$(cat CHANGELOG.md)" > dojodoc/${DOC_CHANGELOG_FILE}
# Push repo changes into current repo
- cd dojodoc
- git add ${DOC_CHANGELOG_FILE}
- git commit -m "[Gitlab CI/CD] DojoProject => Automatic update of changelog" || echo "No changes, nothing to commit!"
- git push
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
\ No newline at end of file
......@@ -15,7 +15,7 @@
-->
## 3.6.0 (???)
## 3.6.0 (Upcoming)
### ✨ Feature
- Add features related to corrige (commentary, commit specific link / update, delete link)
......
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