Skip to content

Commit

Permalink
chore: record post-processor-changes.txt for java docker image (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 committed Jun 17, 2021
1 parent 49ed2f8 commit c72e5be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/owlbot/java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apt-get install -y --no-install-recommends jq
COPY docker/owlbot/java/bin /owlbot/bin
COPY docker/owlbot/java/src /owlbot/src
COPY docker/owlbot/java/templates /owlbot/templates
COPY post-processor-changes.txt /post-processor-changes.txt
RUN cd /owlbot/src && \
python3 -m pip install -r requirements.txt

Expand Down
7 changes: 7 additions & 0 deletions docker/owlbot/java/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
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'
# Build the docker image.
- name: "gcr.io/cloud-builders/docker"
args: [ "build",
"-t", "gcr.io/$PROJECT_ID/owlbot-java:$SHORT_SHA",
Expand Down
7 changes: 7 additions & 0 deletions docker/owlbot/java/cloudbuild_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
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'
# Build the docker image.
- name: "gcr.io/cloud-builders/docker"
args: [ "build",
"-t", "gcr.io/$PROJECT_ID/owlbot-java:$SHORT_SHA",
Expand Down

0 comments on commit c72e5be

Please sign in to comment.