detached 68b8dd1

feat(admin): clear deploy event suppression after successful deploy

commit
68b8dd119f42d55d6a57fa7ae63065657b59eea1
author
brice · · 2026-03-04 06:42 UTC
parent
faec534
signature
unsigned
1 file · +16 -0
M internal/adapters/in/http/admin/handler.go +16 -0
@@ -1104,6 +1104,22 @@ func (h *Handler) handleDeploy(w http.ResponseWriter, r *http.Request, path stri
11041104 return
11051105 }
11061106
1107+ // Clear deploy event suppression now that the explicit deploy has completed.
1108+ // This re-enables event-based deploys for future direct docker pushes.
1109+ if route.Image != "" {
1110+ // Extract image name (without registry prefix and tag) for suppression key
1111+ imageName := route.Image
1112+ // The suppression key is just the image name as stored in the registry
1113+ // (e.g., "my-app" not "reg.example.com/my-app:latest")
1114+ if parts := strings.SplitN(imageName, "/", 2); len(parts) == 2 {
1115+ imageName = parts[1]
1116+ }
1117+ if idx := strings.LastIndex(imageName, ":"); idx != -1 {
1118+ imageName = imageName[:idx]
1119+ }
1120+ h.registrySvc.ClearDeployEventSuppression(imageName)
1121+ }
1122+
11071123 log.Info().Str("domain", deployDomain).Str("container_id", container.ID).Msg("container deployed via admin API")
11081124 h.sendJSON(w, http.StatusOK, dto.DeployResponse{
11091125 Status: "deployed",
@@ -1104,6 +1104,22 @@ func (h *Handler) handleDeploy(w http.ResponseWriter, r *http.Request, path stri
1104 return1104 return
1105 }1105 }
1106 1106
1107+ // Clear deploy event suppression now that the explicit deploy has completed.
1108+ // This re-enables event-based deploys for future direct docker pushes.
1109+ if route.Image != "" {
1110+ // Extract image name (without registry prefix and tag) for suppression key
1111+ imageName := route.Image
1112+ // The suppression key is just the image name as stored in the registry
1113+ // (e.g., "my-app" not "reg.example.com/my-app:latest")
1114+ if parts := strings.SplitN(imageName, "/", 2); len(parts) == 2 {
1115+ imageName = parts[1]
1116+ }
1117+ if idx := strings.LastIndex(imageName, ":"); idx != -1 {
1118+ imageName = imageName[:idx]
1119+ }
1120+ h.registrySvc.ClearDeployEventSuppression(imageName)
1121+ }
1122+
1107 log.Info().Str("domain", deployDomain).Str("container_id", container.ID).Msg("container deployed via admin API")1123 log.Info().Str("domain", deployDomain).Str("container_id", container.ID).Msg("container deployed via admin API")
1108 h.sendJSON(w, http.StatusOK, dto.DeployResponse{1124 h.sendJSON(w, http.StatusOK, dto.DeployResponse{
1109 Status: "deployed",1125 Status: "deployed",

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close