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)
This commit is contained in:
rinpatch 2019-06-19 14:40:39 +03:00
commit a6e3169cfc
2 changed files with 2 additions and 0 deletions

View file

@ -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