diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index ad9ef1092c2e5e85146ad719fe564c7fdf53950e..0000000000000000000000000000000000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,64 +0,0 @@ -variables: - GIT_SUBMODULE_STRATEGY: recursive - GIT_SUBMODULE_FORCE_HTTPS: "true" - SECURE_FILES_DOWNLOAD_PATH: './' - - PROJECT_NAME: DojoProject - - 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] ${PROJECT_NAME}" - - # 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] ${PROJECT_NAME} => 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