Skip to content
Snippets Groups Projects
Unverified Commit 410d7f70 authored by Varac's avatar Varac
Browse files

Use CI_COMMIT_REF_NAME to get branch name

parent 8e78879c
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,7 @@ flux install \
--namespace=flux-system
# get current git branch name
branch=$(git branch --show-current) 2>/dev/null || /bin/true
echo "branch picked from git: \"${branch}\""
branch=$CI_DEFAULT_BRANCH
echo "branch from CI_DEFAULT_BRANCH: \"${branch}\""
if [ -z "$branch" ]
then
branch=master
fi
branch=$CI_COMMIT_REF_NAME
echo "Tracking branch $branch for https://open.greenhost.net/openappstack/openappstack flux repo"
flux create source git openappstack \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment