Skip to content

Commit

Permalink
feat: record post-processor-changes.txt for python docker image (#1120)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Rennie <rennie@google.com>
  • Loading branch information
parthea and SurferJeffAtGoogle authored Jun 17, 2021
1 parent aabf4c7 commit aed1f03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/owlbot/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ENV SYNTHTOOL_TEMPLATES="/synthtool/synthtool/gcp/templates"
COPY synthtool /synthtool/synthtool
COPY autosynth /synthtool/autosynth
COPY docker /synthtool/docker
COPY post-processor-changes.txt /post-processor-changes.txt

# Update permissions so non-root users won't see errors.
RUN find /synthtool -exec chmod a+r {} \;
Expand Down
6 changes: 6 additions & 0 deletions docker/owlbot/python/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
steps:
# Write the latest commit message to a file in the workspace.
- name: 'gcr.io/cloud-builders/git'
entrypoint: '/bin/sh'
args:
- '-c'
- 'git log -1 --format="%s%n%n%b%nSource-Link: https://github.com/googleapis/synthtool/commit/%H" > post-processor-changes.txt'
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build',
'-t', 'gcr.io/$PROJECT_ID/owlbot-python:$SHORT_SHA',
Expand Down

0 comments on commit aed1f03

Please sign in to comment.