mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-17 17:45:03 +02:00
Write login command silently so it doesn't print password
This commit is contained in:
parent
26679c2ec0
commit
c14d65cf3e
@ -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…
x
Reference in New Issue
Block a user