-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add a Cloud Build config to push library generation image to Artifact Registry #3251
Conversation
@@ -14,7 +14,7 @@ | |||
|
|||
timeout: 7200s # 2 hours | |||
substitutions: | |||
_IMAGE_NAME: "gcr.io/cloud-devrel-public-resources/java-library-generation" | |||
_IMAGE_NAME: "us-docker.pkg.dev/java-hermetic-build-prod/java-hermetic-build-prod-images" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the project name java-hermetic-build-prod
is a generated name from java-hermetic-build
? I don't think we need to repeat java-hermetic-build-prod
again in the image name. Can we choose a different image name? library-generation
actually sounds fine to me, but you may have a better idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look about how to change the image name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repository name updated in cl/679753674.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this PR to resolve the permission issues you mentioned in the description? Or those are the issues will run into?
This is the issue we ran into when pushing images to Artifact registry (which is different from pulling image from AR). |
|
||
timeout: 7200s # 2 hours | ||
substitutions: | ||
_IMAGE_NAME: "us-docker.pkg.dev/java-hermetic-build-prod/java-hermetic-build-prod-images" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this name needs to be updated with repository name as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
id: library-generation-build | ||
waitFor: ["-"] | ||
|
||
options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this config is a test to try to resolve some permission issue? Did we find it useful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you mean the logging options.
Yes, we can see logs in cloud build.
Quality Gate passed for 'gapic-generator-java-root'Issues Measures |
Quality Gate passed for 'java_showcase_integration_tests'Issues Measures |
In this PR:
This PR will allow us to push the library generation image to two image repositories so that we can test our generation script can pull from
us-docker.pkg.dev
while the downstream libraries can still use images fromgcr.io
.Repository name changed in cl/679753674
Cloud build trigger changed in cl/680040538