File tree 3 files changed +5
-6
lines changed
.cloudbuild/library_generation
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,9 @@ RUN chmod a+x compile-x86_64-alpine-linux.sh
50
50
RUN sh compile-x86_64-alpine-linux.sh
51
51
52
52
# python:3.12.7-alpine3.20
53
- FROM docker.io/library/python@sha256:38e179a0f0436c97ecc76bcd378d7293ab3ee79e4b8c440fdc7113670cb6e204 as final
53
+ FROM docker.io/library/python@sha256:5049c050bdc68575a10bcb1885baa0689b6c15152d8a56a7e399fb49f783bf98 as final
54
54
55
-
56
-
57
- ARG OWLBOT_CLI_COMMITTISH=38fe6f89a2339ee75c77739b31b371f601b01bb3
55
+ ARG OWLBOT_CLI_COMMITTISH=ab222d9a20bb27586433caedc70f049b7853db7e
58
56
ARG PROTOC_VERSION=25.5
59
57
ARG GRPC_VERSION=1.68.1
60
58
ARG JAVA_FORMAT_VERSION=1.7
@@ -126,6 +124,7 @@ RUN git checkout "${OWLBOT_CLI_COMMITTISH}"
126
124
RUN npm i && npm run compile && npm link
127
125
RUN owl-bot copy-code --version
128
126
RUN chmod o+rx $(which owl-bot)
127
+ RUN apk del -r npm && apk cache clean
129
128
130
129
# download the Java formatter
131
130
ADD https://maven-central.storage-download.googleapis.com/maven2/com/google/googlejavaformat/google-java-format/${JAVA_FORMAT_VERSION}/google-java-format-${JAVA_FORMAT_VERSION}-all-deps.jar \
Original file line number Diff line number Diff line change 51
51
run : |
52
52
GENERATOR_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout -pl gapic-generator-java)
53
53
echo "GENERATOR_VERSION=${GENERATOR_VERSION}" >> "$GITHUB_ENV"
54
- docker build \
54
+ DOCKER_BUILDKIT=1 docker build \
55
55
-f .cloudbuild/library_generation/library_generation.Dockerfile \
56
56
-t gcr.io/cloud-devrel-public-resources/java-library-generation:"${GENERATOR_VERSION}" \
57
57
.
Original file line number Diff line number Diff line change 27
27
git checkout -b "${head_ref}" fork/${head_ref}
28
28
changed_directories="$(git diff --name-only "fork/${head_ref}" "origin/${base_ref}")"
29
29
fi
30
- if [[ ${changed_directories} =~ "hermetic_build/" ]]; then
30
+ if [[ ${changed_directories} =~ "hermetic_build/" ]] || [[ ${changed_directories} =~ ".cloudbuild/library_generation/" ]] ; then
31
31
echo "should_run=true" >> $GITHUB_OUTPUT
32
32
else
33
33
echo "should_run=false" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments