Skip to content

Simplify docker.AddTag()#1464

Merged
nkubala merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:fix-1460
Jan 17, 2019
Merged

Simplify docker.AddTag()#1464
nkubala merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:fix-1460

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Jan 14, 2019

Fixes #1460

All credits goes to jonjohnson@google.com

Signed-off-by: David Gageot david@gageot.net

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 14, 2019

Codecov Report

Merging #1464 into master will increase coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1464      +/-   ##
==========================================
+ Coverage    44.8%   44.88%   +0.07%     
==========================================
  Files         112      112              
  Lines        4638     4630       -8     
==========================================
  Hits         2078     2078              
+ Misses       2350     2342       -8     
  Partials      210      210
Impacted Files Coverage Δ
pkg/skaffold/docker/remote.go 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69776b1...c1265a9. Read the comment docs.

@jonjohnsonjr
Copy link
Copy Markdown
Contributor

For anyone following along, I think this change is good (it's less code), but it looks like the bug is here:

if b.pushImages && (artifact.JibMavenArtifact != nil || artifact.JibGradleArtifact != nil) {
if err := docker.AddTag(initialTag, newTag); err != nil {
return errors.Wrap(err, "tagging image")
}
return nil
}

@dgageot dgageot force-pushed the fix-1460 branch 2 times, most recently from 33a041b to e0ca4ed Compare January 16, 2019 12:02
@dgageot dgageot changed the title Fix tagging image built by Jib Simplify docker.AddTag() Jan 16, 2019
Fixes GoogleContainerTools#1460

All credits goes to jonjohnson@google.com

Signed-off-by: David Gageot <david@gageot.net>
@nkubala nkubala merged commit 6de6a34 into GoogleContainerTools:master Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants