-
Notifications
You must be signed in to change notification settings - Fork 766
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
Add default transport to push if not provided #260
Add default transport to push if not provided #260
Conversation
74fa055
to
2443a77
Compare
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.
Looks like the Build environment is having issues in the Red Hat CI tests. Will chase Monday.
cmd/buildah/push.go
Outdated
if err != nil { | ||
return err | ||
if !strings.Contains(destSpec, "://") { |
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.
Reverse the error
if err strings.Container(destSpec,"://") {
return err
}
d1baa9e
to
7c5cfdb
Compare
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
7c5cfdb
to
f1b6b46
Compare
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.
@nalind PTAL.
LGTM |
@nalind PTAL |
LGTM |
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #260 Approved by: rhatdan
💥 Test timed out |
@rh-atomic-bot retest |
@rh-atomic-bot retry |
1 similar comment
@rh-atomic-bot retry |
@rh-atomic-bot retest |
☀️ Test successful - status-redhatci |
Signed-off-by: TomSweeneyRedHat tsweeney@redhat.com
Currently with 'buildah push' if the transport is not defined, it will fail. This change will retry if a transport was not found by adding "docker://" to the front of the destination image and retrying.
I tweaked a test in the test script to test for this condition and also converted the creation of htpasswd from Docker to Buildah. I tried running the registry with Buildah too, but 'docker login' wasn't happy. More investigation there in a follow up.