Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
stages:
- build
- docker
- release

variables:
IMAGE_NAME: high-command-mcp
Expand Down Expand Up @@ -53,3 +54,23 @@ publish:
- if: '$CI_COMMIT_TAG'
tags:
- kubernetes

release:
stage: release
image: registry.gitlab.com/gitlab-org/cli:latest
dependencies:
- build
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
script:
- |
echo "Creating release for commit $CI_COMMIT_SHORT_SHA"
echo "Release will create tag automatically"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: 'v0.$CI_PIPELINE_IID' # The version is incremented per pipeline
description: 'Release v0.$CI_PIPELINE_IID'
ref: '$CI_COMMIT_SHA' # The tag is created from the pipeline SHA
tags:
- kubernetes