mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 02:41:01 +00:00
Write login command silently so it doesn't print password
This commit is contained in:
parent
26679c2ec0
commit
c14d65cf3e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ func (d *Docker) Write(f *buildfile.Buildfile, r *repo.Repo) {
|
|||
dockerServerUrl, dockerRepo, d.Dockerfile))
|
||||
|
||||
// Login and push to index.docker.io
|
||||
f.WriteCmd(fmt.Sprintf("docker -H %s login -u %s -p %s -e %s",
|
||||
f.WriteCmdSilent(fmt.Sprintf("docker -H %s login -u %s -p %s -e %s",
|
||||
dockerServerUrl, d.Username, d.Password, d.Email))
|
||||
f.WriteCmd(fmt.Sprintf("docker -H %s push %s", dockerServerUrl, dockerRepo))
|
||||
|
||||
|
|
Loading…
Reference in a new issue