Files
overlord/.gitlab-ci.yml

28 lines
716 B
YAML

spec:
inputs:
release_version:
type: string
default: ""
regex: '^$|^[0-9]+\.[0-9]+\.[0-9]+$'
description: "Server image version to publish (strict SemVer, for example 3.1.0). Leave blank for a test-only pipeline."
---
stages:
- test
- package
- release
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"'
when: never
- if: "$CI_COMMIT_BRANCH || $CI_COMMIT_TAG"
variables:
RELEASE_VERSION: "$[[ inputs.release_version ]]"
include:
- local: /.gitlab/ci/tests.yml
- local: /.gitlab/ci/container-release.yml
- local: /.gitlab/ci/desktop-release.yml