1
1
pipeline :
2
2
create_cluster :
3
- image : banzaicloud/ci-pipeline-client:0.11
3
+ image : banzaicloud/ci-pipeline-client:0.12
4
4
action : EnsureCluster
5
5
6
6
test :
7
- image : maven:3.5 -jdk-11-slim
7
+ image : maven:3.6 -jdk-11-slim
8
8
commands :
9
9
- mvn -Dmaven.repo.local=${PWD}/.m2/repository clean test
10
10
11
11
build_image :
12
- image : maven:3.5 -jdk-11-slim
12
+ image : maven:3.6 -jdk-11-slim
13
13
commands :
14
14
- mvn -Dmaven.repo.local=${PWD}/.m2/repository compile jib:build
15
15
environment :
@@ -32,6 +32,20 @@ pipeline:
32
32
# DOCKER_PASSWORD:
33
33
# keyRef: password
34
34
35
+ # install_gcr_secret:
36
+ # when:
37
+ # branch:
38
+ # include: [master]
39
+ # image: banzaicloud/ci-pipeline-client:0.12
40
+ # action: InstallSecret
41
+ # clusterSecret:
42
+ # name: your-gcr-secret-name
43
+ # namespace: default
44
+ # merge: true
45
+ # spec:
46
+ # - name: json-key
47
+ # source: json-key
48
+
35
49
# build_image:
36
50
# image: banzaicloud/drone-kaniko
37
51
# dockerfile: Dockerfile
@@ -44,32 +58,18 @@ pipeline:
44
58
# keyRef: json-key
45
59
46
60
package_application :
47
- image : lachlanevenson/k8s- helm:latest
61
+ image : alpine/ helm:3.0.0
48
62
commands :
49
- - helm init -c
63
+ - helm repo add stable https://kubernetes-charts.storage.googleapis.com
50
64
- helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
51
65
- helm dep update ./.banzaicloud/charts/spotguide-spring-boot
52
66
- helm package ./.banzaicloud/charts/spotguide-spring-boot
53
67
54
- # install_gcr_secret:
55
- # when:
56
- # branch:
57
- # include: [master]
58
- # image: banzaicloud/ci-pipeline-client:0.11
59
- # action: InstallSecret
60
- # clusterSecret:
61
- # name: your-gcr-secret-name
62
- # namespace: default
63
- # merge: true
64
- # spec:
65
- # - name: json-key
66
- # source: json-key
67
-
68
68
install_mysql_user_secret :
69
69
when :
70
70
branch :
71
71
include : [master]
72
- image : banzaicloud/ci-pipeline-client:0.11
72
+ image : banzaicloud/ci-pipeline-client:0.12
73
73
action : InstallSecret
74
74
clusterSecret :
75
75
name : ' {{ .CICD_REPO_NAME }}-mysql'
@@ -85,7 +85,7 @@ pipeline:
85
85
when :
86
86
branch :
87
87
include : [master]
88
- image : banzaicloud/ci-pipeline-client:0.11
88
+ image : banzaicloud/ci-pipeline-client:0.12
89
89
action : InstallSecret
90
90
clusterSecret :
91
91
name : ' {{ .CICD_REPO_NAME }}-mysql'
@@ -99,7 +99,7 @@ pipeline:
99
99
when :
100
100
branch :
101
101
include : [master]
102
- image : banzaicloud/ci-pipeline-client:0.11
102
+ image : banzaicloud/ci-pipeline-client:0.12
103
103
action : EnsureDeployment
104
104
deployment :
105
105
name : ' ./spotguide-spring-boot-1.0.0.tgz'
0 commit comments