File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ gradle:
14
14
stage : build
15
15
image : openjdk:17
16
16
only :
17
- - master
17
+ variables :
18
+ # run for protected branches only
19
+ - $CI_COMMIT_REF_PROTECTED == 'true'
18
20
cache :
19
21
- key : $CI_COMMIT_REF_SLUG
20
22
paths :
@@ -122,7 +124,9 @@ publish-distro:
122
124
stage : publish
123
125
image : openjdk:17
124
126
only :
125
- - master
127
+ variables :
128
+ # run for protected branches only
129
+ - $CI_COMMIT_REF_PROTECTED == 'true'
126
130
cache :
127
131
key : $CI_PIPELINE_ID
128
132
policy : pull
@@ -140,7 +144,9 @@ docker-push:
140
144
stage : publish
141
145
image : docker:stable
142
146
only :
143
- - master
147
+ variables :
148
+ # run for protected branches only
149
+ - $CI_COMMIT_REF_PROTECTED == 'true'
144
150
cache :
145
151
key : $CI_PIPELINE_ID
146
152
policy : pull
Original file line number Diff line number Diff line change 4
4
./gradlew build
5
5
6
6
7
+ build_image :
8
+ ./gradlew jibDockerBuild --image=dto-codegen:local
9
+
10
+
7
11
# ===================== LOCAL ENV =================
8
12
9
13
run_sidecars_for_local_tests_of_generated_code :
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
8
8
// coverage
9
9
id ' jacoco'
10
10
// docker image builder
11
- id ' com.google.cloud.tools.jib' version " 3.3.1 "
11
+ id ' com.google.cloud.tools.jib' version " 3.4.4 "
12
12
}
13
13
14
14
group ' org.codegen'
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.2 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.10 -bin.zip
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments