fix: restore manifest push (by tag) and tag delete webhook notifications
Partial fix for #682 (closed).
How to test this locally
Setup
-
Create two repositories by pushing an image to each. Ensure one is only present on the old code path (
old/repo
) and the other on the new code path (new/repo
). -
Go to https://requestbin.com/r and copy the endpoint URL on the top right.
-
Configure the registry as follows (truncated):
database:
enabled: true
migration:
enabled: true
disablemirrorfs: true
notifications:
endpoints:
- name: pipedream
url: <endpoint>
timeout: 500ms
threshold: 5
backoff: 1s
ignore:
actions:
- pull
ignoredmediatypes:
- application/octet-stream
Before
Using the master
branch, start the registry and try:
- Push an image to
old/repo
; - Delete tag in
old/repo
; - Push an image to
new/repo
; - Delete tag in
new/repo
.
You should only see notifications for (1) and (2) in pipedream.
After
Using this branch, repeat the steps above. You should see notifications for (3) and (4) as well.
Sample: https://requestbin.com/r/enibje2tcohfg/29Kyl55bV0KgcTqLIhR968qH7dh
Edited by João Pereira