feat(backend): build identity в health, VERSION bake и auto stage по sha-*
CI / test (push) Successful in 28m3s
CI / test (push) Successful in 28m3s
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}}}
|
||||
}
|
||||
}
|
||||
}
|
||||
].
|
||||
].
|
||||
|
||||
Reference in New Issue
Block a user