Skip to content

Commit 87bb950

Browse files
committed
bump gradle and jib versions
1 parent 8aefb34 commit 87bb950

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.gitlab-ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ gradle:
1414
stage: build
1515
image: openjdk:17
1616
only:
17-
- master
17+
variables:
18+
# run for protected branches only
19+
- $CI_COMMIT_REF_PROTECTED == 'true'
1820
cache:
1921
- key: $CI_COMMIT_REF_SLUG
2022
paths:
@@ -122,7 +124,9 @@ publish-distro:
122124
stage: publish
123125
image: openjdk:17
124126
only:
125-
- master
127+
variables:
128+
# run for protected branches only
129+
- $CI_COMMIT_REF_PROTECTED == 'true'
126130
cache:
127131
key: $CI_PIPELINE_ID
128132
policy: pull
@@ -140,7 +144,9 @@ docker-push:
140144
stage: publish
141145
image: docker:stable
142146
only:
143-
- master
147+
variables:
148+
# run for protected branches only
149+
- $CI_COMMIT_REF_PROTECTED == 'true'
144150
cache:
145151
key: $CI_PIPELINE_ID
146152
policy: pull

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ build:
44
./gradlew build
55

66

7+
build_image:
8+
./gradlew jibDockerBuild --image=dto-codegen:local
9+
10+
711
# ===================== LOCAL ENV =================
812

913
run_sidecars_for_local_tests_of_generated_code:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
// coverage
99
id 'jacoco'
1010
// 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"
1212
}
1313

1414
group 'org.codegen'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
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
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)