mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-03 20:21:44 +00:00
Merge pull request #12264 from Mashimiao/add-event-log-for-push
Add event log for push
This commit is contained in:
@@ -536,6 +536,7 @@ func (s *TagStore) CmdPush(job *engine.Job) error {
|
||||
if repoInfo.Index.Official || endpoint.Version == registry.APIVersion2 {
|
||||
err := s.pushV2Repository(r, localRepo, job.Stdout, repoInfo, tag, sf)
|
||||
if err == nil {
|
||||
s.eventsService.Log("push", repoInfo.LocalName, "")
|
||||
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 {
|
||||
return err
|
||||
}
|
||||
s.eventsService.Log("push", repoInfo.LocalName, "")
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user