Skip to content

Commit

Permalink
Build image in cloudbuild (#704)
Browse files Browse the repository at this point in the history
This allows `/gcbrun exp` to build and push images before requesting
experiments so that maintainers can run PR experiments too.
  • Loading branch information
DonggeLiu authored Nov 8, 2024
1 parent 1525441 commit 6c04059
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/push-pr-to-gcloud.yml

This file was deleted.

10 changes: 10 additions & 0 deletions ci/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args:
- build
- '-t'
- us-central1-docker.pkg.dev/oss-fuzz-base/testing/oss-fuzz-gen-pull-request:pr-${_PR_NUMBER}
- .
- name: 'gcr.io/cloud-builders/docker'
args:
- push
- us-central1-docker.pkg.dev/oss-fuzz-base/testing/oss-fuzz-gen-pull-request:pr-${_PR_NUMBER}
- name: 'gcr.io/cloud-builders/docker'
args:
- build
Expand Down
2 changes: 1 addition & 1 deletion run_all_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def main():

args = parse_args()
_setup_logging(args.log_level)
logger.info('Starting experiments')
logger.info('Starting experiments on PR branch')

# Capture time at start
start = time.time()
Expand Down

0 comments on commit 6c04059

Please sign in to comment.