Skip to content

Commit

Permalink
chore(postprocessor): add update steps (#8103)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz authored Jun 16, 2023
1 parent 72d0127 commit e43ebeb
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions internal/postprocessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,29 @@ the OwlBot lock file.
4. Clean up any changes made by post-processor test runs in the previous step.
5. Commit your changes.
6. Open your PR and respond to feedback.
7. After your PR is approved and CI is green, merge your changes. An automated
job should update the SHA of the post-processor docker image in
7. After your PR is approved and CI is green, merge your changes. An automated
job should update the SHA of the post-processor docker image in
`google-cloud-go/.github/.OwlBot.lock.yaml`.

### Updating the postprocessor version used by OwlBot

After making changes to this package land in `main`, a new Docker image will be
built and pushed automatically. To update the image version used by OwlBot, run
the following commands (_you will need Docker installed and running_):

```sh
docker pull gcr.io/cloud-devrel-public-resources/owlbot-go:latest
LATEST=`docker inspect --format='{{index .RepoDigests 0}}' gcr.io/cloud-devrel-public-resources/owlbot-go:latest`
sed -i -e 's/sha256.*/'${LATEST#*@}'/g' ./.github/.OwlBot.lock.yaml
```

_Note: If run on macOS, the `sed -i` flag will need a `''` after it._

Send a pull request with the updated `.github/.OwlBot.lock.yaml`.

_Note: Any open OwlBot PR will need to be caught-up and the postprocessor rerun_
_to capture the changes._

## Initializing new modules

The post-processor initializes new modules by generating the required files
Expand Down

0 comments on commit e43ebeb

Please sign in to comment.