mirror of https://github.com/docker/docs.git
Add event log for push
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
This commit is contained in:
parent
a54fd325e6
commit
f5a07f0c88
|
@ -536,6 +536,7 @@ func (s *TagStore) CmdPush(job *engine.Job) error {
|
||||||
if repoInfo.Index.Official || endpoint.Version == registry.APIVersion2 {
|
if repoInfo.Index.Official || endpoint.Version == registry.APIVersion2 {
|
||||||
err := s.pushV2Repository(r, localRepo, job.Stdout, repoInfo, tag, sf)
|
err := s.pushV2Repository(r, localRepo, job.Stdout, repoInfo, tag, sf)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
s.eventsService.Log("push", repoInfo.LocalName, "")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -547,6 +548,7 @@ func (s *TagStore) CmdPush(job *engine.Job) error {
|
||||||
if err := s.pushRepository(r, job.Stdout, repoInfo, localRepo, tag, sf); err != nil {
|
if err := s.pushRepository(r, job.Stdout, repoInfo, localRepo, tag, sf); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
s.eventsService.Log("push", repoInfo.LocalName, "")
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue