IntegrateService/.gitlab-ci.yml

42 lines
885 B
YAML

stages :
- compile
- package
- release
# 编译
compile :
stage : compile
tags :
- linux-maven
only :
- master
script:
- echo "=============== 开始编译任务 ==============="
- mvn clean compile -DskipTests
# 打包
package :
stage : package
tags :
- linux-maven
only :
- master
script:
- echo "=============== 开始打包任务 ==============="
- mvn clean package
# 发布
release_job :
stage : release
image : registry.gitlab.com/gitlab-org/release-cli:latest
tags :
- linux-maven
rules :
- if $CI_COMMIT_TAG
script :
- echo "running release_job $CI_COMMIT_TAG"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name : "$CI_COMMIT_TAG"
name : "Release $CI_COMMIT_TAG"
description: "./CHANGELOG.md"