Quay Repository Notifications
Quay supports adding notifications to a repository for various events that occur in the repository lifecycle, such as a new image push or tag deletion.
Creating a push to repository event notification
-
From the Red Hat Quay Dashboard, go to the
olleb/kafka
repository. Remind from 2.2 Quay Repositories, we created and pushed astrimzi/kafka
image. -
Click
Settings
. -
Click on the
+ Create Notification
button.
![notifbutton](_images/reponotifications/notifbutton.png)
-
In the
When this event occurs
drop-down menu, selectPush to Repository
.
![event list](_images/reponotifications/event-list.png)
-
Under the
Then issue a notification
drop-down menu, selectRed Hat Quay Notification
.
![notification actions](_images/reponotifications/notification-actions.png)
-
In the
Recipient
drop-down menu, selectowners
. -
In the
Notification title
text field, typeA new image has been pushed into the repository
.
![notifications all](_images/reponotifications/notifications-all.png)
-
Click
Create Notification
.
Push a new image or add a new tag to the existing one in the repository.
podman pull quay.io/strimzi/kafka:latest-kafka-3.0.0
podman tag quay.io/strimzi/kafka:latest-kafka-3.0.0 ${QUAY_HOSTNAME}/olleb/kafka:3.0.0
# login if we are not already logged in
podman login ${QUAY_HOSTNAME}
podman push ${QUAY_HOSTNAME}/olleb/kafka:3.0.0
After a while, a notification will appear at the top of our dashboard indicating that a new image has been pushed into the repository.
![notification](_images/reponotifications/notification.png)
![notifications](_images/reponotifications/notifications.png)