gilde-ci-cd/.gitlab-ci.yml
2022-03-04 12:59:37 +01:00

76 lines
2.0 KiB
YAML

stages:
- test
- generate-docs
- release
include:
- local: 'release-template.gitlab-ci.yml'
- local: 'tool-documentation.gitlab-ci.yml'
Test-Java-Backend:
stage: test
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
when: always
- when: never
trigger:
project: gilden/ci/java-backend-template
strategy: depend
check_confluence_validity:
variables:
DOCUMENT_ROOT: "documentation"
INPUT_FILE: "document.adoc"
IMAGES_DIR: images
CREATE_SUB_PAGES: "false"
PAGE_PREFIX: "[CI/CD] - [TMPL] - "
CONFLUENCE_SPACE: RANDI
TEXT_GENERATED_HINT: '<ac:structured-macro ac:name="warning"><ac:parameter ac:name="title" /><ac:rich-text-body>This is a generated page, do not edit! All changes must happen in the <a href="${CI_PROJECT_URL}">Repository</a>
.</ac:rich-text-body></ac:structured-macro>'
FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
extends: .check_confluence_validity-template
pages:
variables:
DOCUMENT_ROOT: "documentation"
INPUT_FILE: "document.adoc"
IMAGES_DIR: images
CREATE_SUB_PAGES: "false"
PAGE_PREFIX: "[CI/CD] - [TMPL] - "
CONFLUENCE_SPACE: RANDI
TEXT_GENERATED_HINT: '<ac:structured-macro ac:name="warning"><ac:parameter ac:name="title" /><ac:rich-text-body>This is a generated page, do not edit! All changes must happen in the <a href="${CI_PROJECT_URL}">Repository</a>
.</ac:rich-text-body></ac:structured-macro>'
FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
extends: .pages-template
.release-template:
trigger:
include: pipelines/update-version-pipeline.gitlab-ci.yml
strategy: depend
a.major-release:
extends: .release-template
variables:
BUMP_VERSION: "major"
b.minor-release:
extends: .release-template
variables:
BUMP_VERSION: "minor"
c.patch-release:
extends: .release-template
variables:
BUMP_VERSION: "patch"
d.prerelease-release:
extends: .release-template
variables:
BUMP_VERSION: "prerelease"
e.build-release:
extends: .release-template
variables:
BUMP_VERSION: "build"