Skip to content

Commit c72e5be

Browse files
authored
chore: record post-processor-changes.txt for java docker image (#1123)
1 parent 49ed2f8 commit c72e5be

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

docker/owlbot/java/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN apt-get install -y --no-install-recommends jq
2222
COPY docker/owlbot/java/bin /owlbot/bin
2323
COPY docker/owlbot/java/src /owlbot/src
2424
COPY docker/owlbot/java/templates /owlbot/templates
25+
COPY post-processor-changes.txt /post-processor-changes.txt
2526
RUN cd /owlbot/src && \
2627
python3 -m pip install -r requirements.txt
2728

docker/owlbot/java/cloudbuild.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
steps:
15+
# Write the latest commit message to a file in the workspace.
16+
- name: 'gcr.io/cloud-builders/git'
17+
entrypoint: '/bin/sh'
18+
args:
19+
- '-c'
20+
- 'git log -1 --format="%s%n%n%b%nSource-Link: https://github.com/googleapis/synthtool/commit/%H" > post-processor-changes.txt'
21+
# Build the docker image.
1522
- name: "gcr.io/cloud-builders/docker"
1623
args: [ "build",
1724
"-t", "gcr.io/$PROJECT_ID/owlbot-java:$SHORT_SHA",

docker/owlbot/java/cloudbuild_test.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
steps:
15+
# Write the latest commit message to a file in the workspace.
16+
- name: 'gcr.io/cloud-builders/git'
17+
entrypoint: '/bin/sh'
18+
args:
19+
- '-c'
20+
- 'git log -1 --format="%s%n%n%b%nSource-Link: https://github.com/googleapis/synthtool/commit/%H" > post-processor-changes.txt'
21+
# Build the docker image.
1522
- name: "gcr.io/cloud-builders/docker"
1623
args: [ "build",
1724
"-t", "gcr.io/$PROJECT_ID/owlbot-java:$SHORT_SHA",

0 commit comments

Comments
 (0)