feat(backend): build identity в health, VERSION bake и auto stage по sha-*
CI / test (push) Successful in 28m3s

This commit is contained in:
2026-07-14 21:25:40 +03:00
parent ff4ab23264
commit 2eeda5c4c4
8 changed files with 99 additions and 31 deletions
+8 -4
View File
@@ -8,7 +8,7 @@
init(Req, _State) ->
case cowboy_req:method(Req) of
<<"GET">> ->
handler_utils:send_json(Req, 200, #{status => <<"ok">>});
handler_utils:send_json(Req, 200, eventhub_build_info:info());
_ ->
handler_utils:send_error(Req, 405, <<"Method not allowed">>)
end.
@@ -19,7 +19,7 @@ trails() ->
#{
path => <<"/admin/health">>,
method => <<"GET">>,
description => <<"Admin API health check">>,
description => <<"Admin API health check with build identity">>,
tags => [<<"Health">>],
responses => #{
200 => #{
@@ -27,10 +27,14 @@ trails() ->
content => #{<<"application/json">> => #{schema => #{
type => object,
properties => #{
status => #{type => string}
status => #{type => string},
service => #{type => string},
version => #{type => string},
git_sha => #{type => string},
built_at => #{type => string}
}
}}}
}
}
}
].
].