c8d: Add image push events
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
parent
032797ea4b
commit
1847dc4b7f
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,7 @@ import (
|
|||
"github.com/containerd/containerd/remotes"
|
||||
"github.com/containerd/containerd/remotes/docker"
|
||||
"github.com/distribution/reference"
|
||||
"github.com/docker/docker/api/types/events"
|
||||
"github.com/docker/docker/api/types/registry"
|
||||
"github.com/docker/docker/errdefs"
|
||||
"github.com/docker/docker/pkg/progress"
|
||||
|
@ -147,6 +148,9 @@ func (i *ImageService) PushImage(ctx context.Context, targetRef reference.Named,
|
|||
}
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
i.LogImageEvent(reference.FamiliarString(targetRef), reference.FamiliarName(targetRef), events.ActionPush)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue