Skip to content

Commit

Permalink
Increase compatibility with older docker cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolftimmermans committed Nov 13, 2024
1 parent 3387698 commit 6a94d1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.5.3

* Increase compatibility with older docker clients.

# v2.5.2

* Display error output if pushing to remote registry fails.
Expand Down
4 changes: 1 addition & 3 deletions pkg/internal/docker/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ func Build(log *util.Logger, app *config.ResolvedApp, buildCacheTag string) erro
}

func Push(log *util.Logger, app *config.ResolvedApp) error {
// Swallow stderr to ignore nag about pushing single-platform image.
return util.RunWithoutStdErr(log,
return util.Run(log,
"docker",
"push", app.Repository(),
"--platform", app.Platform,
)
}

Expand Down

0 comments on commit 6a94d1c

Please sign in to comment.