-
Notifications
You must be signed in to change notification settings - Fork 820
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
Move all actual Agones releases images to GAR #2875
Changes from all commits
ac8a751
f6f6f02
90d744b
deee464
5f0d4c7
2a4dc9c
4578006
5767779
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -29,6 +29,8 @@ steps: | |||||||||||
args: ['build', '-f', 'Dockerfile.build', '-t', 'make-docker', '.'] # we need docker and make to run everything. | ||||||||||||
- name: "make-docker" | ||||||||||||
dir: "build" | ||||||||||||
env: | ||||||||||||
- "REGISTRY=${_REGISTRY}" | ||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 what does this do? I don't think this is required, but I could be wrong? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a little confused now. This step will do There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this all comes from here: agones/build/includes/build-image.mk Line 51 in 176ffb2
So pull and push build image targets are targets specifically for the CI system (local developers don't use them), so for those, I don't know if you want to set them to a default that will work on CI? Also, if you have I'm curious if you tested running this cloud-build yaml against your dev project to see if it worked - because I would have expected it would have failed because of the missing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, I understood they come from the You're right the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OIC OIC! So the So in the Line 40 in 176ffb2
So in your code, the agones/build/includes/build-image.mk Lines 70 to 72 in 176ffb2
So TL;DR - I would suggest either hardcode where it's pulled from somewhere in that Makefile, or create a substitution section like we have in the main cloudbuild.yaml and pull it from there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the details! This makes sense now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the substitution in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks right! Okay, let's approve and hopefully nothing breaks 😀 But looks good to me! |
||||||||||||
args: ["pull-build-image"] # since we are past CI build, we can assume that the build image exists. | ||||||||||||
|
||||||||||||
# | ||||||||||||
|
@@ -60,4 +62,6 @@ steps: | |||||||||||
- GOPATH=/workspace/go | ||||||||||||
- GO111MODULE=on | ||||||||||||
|
||||||||||||
substitutions: | ||||||||||||
_REGISTRY: us-docker.pkg.dev/${PROJECT_ID}/ci | ||||||||||||
tags: ["site"] |
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.
Thank you! I forgot that I kept having to do this manually!