mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-31 18:30:58 +00:00
functional save and restore through proxy
This commit is contained in:
parent
95e754c06b
commit
e3adb49c50
2 changed files with 4 additions and 1 deletions
|
@ -199,9 +199,10 @@ func (h *Handler) find(w http.ResponseWriter, r *http.Request, params httprouter
|
|||
h.responseJSON(w, r, 204)
|
||||
return
|
||||
}
|
||||
archiveLocation := fmt.Sprintf("%s/%s%s/artifacts/%d", r.Header.Get("Forgejo-Cache-Host"), r.Header.Get("Forgejo-Cache-RunId"), urlBase, cache.ID)
|
||||
h.responseJSON(w, r, 200, map[string]any{
|
||||
"result": "hit",
|
||||
"archiveLocation": fmt.Sprintf("%s%s/artifacts/%d", h.ExternalURL(), urlBase, cache.ID),
|
||||
"archiveLocation": archiveLocation,
|
||||
"cacheKey": cache.Key,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue