mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-28 10:15:16 +01:00
Merge branch 'ci-improvements' into 'develop'
Add PLEROMA_BUILD_ENV to override env for the version generator and use it in the CI for building docs See merge request pleroma/pleroma!1360
This commit is contained in:
commit
ce827a1626
@ -35,6 +35,7 @@ docs-build:
|
||||
- develop@pleroma/pleroma
|
||||
variables:
|
||||
MIX_ENV: dev
|
||||
PLEROMA_BUILD_ENV: prod
|
||||
script:
|
||||
- mix deps.get
|
||||
- mix compile
|
||||
|
9
mix.exs
9
mix.exs
@ -207,6 +207,15 @@ defmodule Pleroma.Mixfile do
|
||||
|
||||
env_name = if Mix.env() != :prod, do: to_string(Mix.env())
|
||||
|
||||
env_override = System.get_env("PLEROMA_BUILD_ENV")
|
||||
|
||||
env_name =
|
||||
if env_override do
|
||||
if env_override != "prod", do: env_override
|
||||
else
|
||||
env_name
|
||||
end
|
||||
|
||||
build =
|
||||
[build_name, env_name]
|
||||
|> Enum.filter(fn string -> string && string != "" end)
|
||||
|
Loading…
Reference in New Issue
Block a user