Update Pleroma-FE build artifacts URL
This commit is contained in:
parent
2082bf729a
commit
4873991983
3 changed files with 3 additions and 2 deletions
1
changelog.d/pleroma-fe-link.fix
Normal file
1
changelog.d/pleroma-fe-link.fix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Updated Pleroma-FE build URL after Forgejo migration
|
||||||
|
|
@ -775,7 +775,7 @@ config :pleroma, :frontends,
|
||||||
"name" => "pleroma-fe",
|
"name" => "pleroma-fe",
|
||||||
"git" => "https://git.pleroma.social/pleroma/pleroma-fe",
|
"git" => "https://git.pleroma.social/pleroma/pleroma-fe",
|
||||||
"build_url" =>
|
"build_url" =>
|
||||||
"https://git.pleroma.social/pleroma/pleroma-fe/-/jobs/artifacts/${ref}/download?job=build",
|
"https://git.pleroma.social/api/packages/pleroma/generic/pleroma-fe-builds/${ref}/latest.zip",
|
||||||
"ref" => "develop"
|
"ref" => "develop"
|
||||||
},
|
},
|
||||||
"fedi-fe" => %{
|
"fedi-fe" => %{
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,8 @@ defmodule Pleroma.Frontend do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp download_build(frontend_info, dest) do
|
defp download_build(frontend_info, dest) do
|
||||||
Logger.info("Downloading pre-built bundle for #{frontend_info["name"]}")
|
|
||||||
url = String.replace(frontend_info["build_url"], "${ref}", frontend_info["ref"])
|
url = String.replace(frontend_info["build_url"], "${ref}", frontend_info["ref"])
|
||||||
|
Logger.info("Downloading pre-built bundle for #{frontend_info["name"]} from #{url}")
|
||||||
|
|
||||||
with {:ok, %{status: 200, body: zip_body}} <-
|
with {:ok, %{status: 200, body: zip_body}} <-
|
||||||
Pleroma.HTTP.get(url, [], pool: :media, recv_timeout: 120_000) do
|
Pleroma.HTTP.get(url, [], pool: :media, recv_timeout: 120_000) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue