Skip to content

Commit

Permalink
fixing docker login issue due 2 logins we are performing during put o…
Browse files Browse the repository at this point in the history
…peration

Signed-off-by: NiharBabu <nihar.devathi@smarsh.com>
  • Loading branch information
niharbabu99 committed Mar 10, 2022
1 parent 273da71 commit 15cf218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ log_in() {
local username="$1"
local password="$2"
local registry="$3"

docker logout
if [ -n "${username}" ] && [ -n "${password}" ]; then
echo "${password}" | docker login -u "${username}" --password-stdin ${registry}
else
Expand Down

0 comments on commit 15cf218

Please sign in to comment.