-
Notifications
You must be signed in to change notification settings - Fork 35
/
.gitlab-ci.yml
47 lines (46 loc) · 1.6 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
include: https://api.choerodon.com.cn/devops/v1/projects/261899051275677696/ci_contents/pipelines/30184d36-f36d-42a4-8e0e-1805e7686081/content.yaml
#include: https://api.choerodon.com.cn/devops/v1/projects/1529/ci_contents/pipelines/2ab84ef8-bb06-478b-bb7f-deaeb93227bb/content.yaml
#
##image: registry.cn-shanghai.aliyuncs.com/c7n/cibase:0.9.1
##
##stages:
## - build
## - release
##
##build:
## stage: build
## script:
## - update_pom_version
## - mvn package spring-boot:repackage
## - mv target/app.jar $PWD/docker
## - kaniko -c $PWD/docker -f $PWD/docker/Dockerfile -d ${DOCKER_REGISTRY}/${GROUP_NAME}/${PROJECT_NAME}:${CI_COMMIT_TAG}
##
##release:
## stage: release
## script:
## - chart_build
##
##maven-deploy-snapshot:
## stage: build
## script:
## - mvn clean install -Dmaven.springboot.skip=true -DskipTests=true deploy -DaltDeploymentRepository=${CHOERODON_SNAPSHOT_REPOSITORY_ID}::default::${CHOERODON_SNAPSHOT_URL} -Ddeploy.classifier=exec
## except:
## - tags
##
##maven-deploy-release:
## stage: build
## script:
## - mvn clean install -Dmaven.springboot.skip=true -DskipTests=true deploy -DaltDeploymentRepository=${CHOERODON_RELEASE_REPOSITORY_ID}::default::${CHOERODON_RELEASE_URL} -Ddeploy.classifier=exec
## only:
## - tags
##
##.auto_devops: &auto_devops |
## http_status_code=`curl -o .auto_devops.sh -s -m 10 --connect-timeout 10 -w %{http_code} "${CHOERODON_URL}/devops/ci?token=${Token}&type=microservice"`
## if [ "$http_status_code" != "200" ]; then
## cat .auto_devops.sh
## exit 1
## fi
## source .auto_devops.sh
##
##before_script:
## - *auto_devops