IntegrateService/.gitlab-ci.yml

41 lines
894 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 # 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'