Skip to content

Commit

Permalink
fix: not logging in with pushwithtag (#2643)
Browse files Browse the repository at this point in the history
* fix: not logging in with pushwithtag

This PR makes sure that we log in when we push an image that is being promoted.

* Update artifact_builder.go

* commit from cli-ci -- updated coverage

* fmt

---------

Co-authored-by: jakeyheath <[email protected]>
  • Loading branch information
jakeyheath and jakeyheath committed Oct 26, 2023
1 parent b7bdadc commit a3c467d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/COVERAGE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.65
22.63
2 changes: 1 addition & 1 deletion cli/pkg/artifact_builder/COVERAGE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
56.7
56.2
5 changes: 5 additions & 0 deletions cli/pkg/artifact_builder/artifact_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,11 @@ func (ab ArtifactBuilder) Push(ctx context.Context, tags []string) error {
// PushFrom allows the caller to specify where the images are coming from and also what tags
// to pull from.
func (ab ArtifactBuilder) PushFromWithTag(ctx context.Context, servicesImage map[string]string, tag string) error {
err := ab.RegistryLogin(ctx)
if err != nil {
return err
}

return ab.push(ctx, []string{tag}, servicesImage)
}

Expand Down

0 comments on commit a3c467d

Please sign in to comment.