-
Notifications
You must be signed in to change notification settings - Fork 8
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
Cloudbuild fixups #29
Cloudbuild fixups #29
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: marosset The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
ee3851d
to
065cc89
Compare
/assign @knabben @jsturtevant |
/lgtm |
output="type=docker,dest=./output/export.tar" | ||
|
||
if [[ "$push" == "1" ]]; then | ||
output="type=registry" |
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.
did you mean to drop this? looks like make sets this value
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.
That was intentional.
Since we want to push job to push a latest tag I thought it made more sense to output it to a local file, import the image, then push it with both tags.
If I push it directly to the repository in the build step we'd need to pull the image to tag it and then push it again.
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.
see the end of the script.
Happy to make more changes if this workflow isn't ideal
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.
see how it works now. Thanks!
Fixes #7