1. 更新gitlab-ci流水线配置

This commit is contained in:
黄昕 2024-03-13 17:51:59 +08:00
parent d7f70a20a7
commit a2556f4f03
1 changed files with 7 additions and 9 deletions

View File

@ -75,17 +75,15 @@ package :
- echo "=============== 开始打包任务 ==============="
- mvn clean package
# 发布
release_job :
stage : release
image : registry.gitlab.com/gitlab-org/release-cli:latest
tags:
- linux-maven
rules :
- exists:
- ./CHANGELOG.md
script :
stage : release
image : registry.gitlab.com/gitlab-org/release-cli:latest
tags :
- linux-maven
script :
- echo "running release_job"
release : # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name : '$CI_COMMIT_SHA'
name : 'Release $CI_COMMIT_SHA'
description: './CHANGELOG.md'