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

CI/CD => Remove auto changelog upload

parent 2ec248e7
No related branches found
No related tags found
1 merge request!3Return error when client headers are missing (issue #19)
......@@ -15,20 +15,6 @@ variables:
WIKI_FOLDER: Wiki
DOC_CHANGELOG_FILE: ZolaApp/content/changelog/projects/103_api.md
DOC_FILE_BEGIN: |
+++
title = "Dojo Backend API"
slug = "dojo-backend-api"
weight = 103
template = "docs/page.html"
[extra]
lead = "Changelog of The Dojo Backend API."
toc = true
top = false
+++
.get_version:
......@@ -87,7 +73,11 @@ code_quality:lint:
- npm install
- npm run lint
rules:
- if: $CI_COMMIT_TAG
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: manual
code_quality:sonarqube:
stage: code_quality
......@@ -106,7 +96,10 @@ code_quality:sonarqube:
script:
- sonar-scanner
rules:
- if: '$CI_COMMIT_TAG =~ "/^$/"'
- if: $CI_COMMIT_TAG
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: manual
test:build:
......@@ -119,7 +112,10 @@ test:build:
- npm install
- npm run build
rules:
- if: '$CI_COMMIT_TAG =~ "/^$/"'
- if: $CI_COMMIT_TAG
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: manual
clean:release:
......@@ -243,47 +239,6 @@ release:doc:wiki:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
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'
release:gitlab:
stage: release
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment