ソースを参照

Make possible to override the branch name via a env variable

This is useful for the CI builds because they have a detached HEAD or
for emulating a feature that is availible only on a particular branch
(e.g pleroma_ctl downloads CI artifacts only for develop and master)
tags/v1.1.4
rinpatch 5年前
コミット
a6e3169cfc
2個のファイルの変更2行の追加0行の削除
  1. +1
    -0
      .gitlab-ci.yml
  2. +1
    -0
      mix.exs

+ 1
- 0
.gitlab-ci.yml ファイルの表示

@@ -173,6 +173,7 @@ amd64:
script: &release
- mix deps.get --only prod
- mkdir release
- PLEROMA_BUILD_BRANCH=$CI_COMMIT_REF_NAME
- mix release --path release




+ 1
- 0
mix.exs ファイルの表示

@@ -207,6 +207,7 @@ defmodule Pleroma.Mixfile do

branch_name =
with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]),
branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name,
true <- branch_name != "master" do
branch_name =
String.trim(branch_name)


読み込み中…
キャンセル
保存