IntegrateService/.gitlab-ci.yml

41 lines
894 B
YAML
Raw Normal View History

2024-03-07 09:03:46 +00:00
stages :
- compile
- package
2024-03-13 09:46:05 +00:00
- release
2024-03-07 09:03:46 +00:00
# 编译
compile :
stage : compile
tags :
- linux-maven
only :
- master
script:
- echo "=============== 开始编译任务 ==============="
- mvn clean compile -DskipTests
2024-03-12 03:05:49 +00:00
2024-03-07 09:03:46 +00:00
# 打包
package :
stage : package
tags :
- linux-maven
only :
- master
script:
- echo "=============== 开始打包任务 ==============="
2024-03-13 09:46:05 +00:00
- mvn clean package
2024-03-13 09:51:59 +00:00
# 发布
2024-03-14 01:43:03 +00:00
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
2024-03-14 01:46:53 +00:00
tags:
- linux-maven
2024-03-14 01:43:03 +00:00
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'