Commit 122cf4d3 authored by jcorvi's avatar jcorvi

Update run_gitlab-runner.sh

parent 29fd69a2
Pipeline #12453 passed with stage
in 5 minutes and 13 seconds
......@@ -48,3 +48,18 @@ cp $base_dir/report.html report.html
#git status
#git push origin HEAD:$CI_COMMIT_REF_NAME
# we need to extract the ssh/git URL as the runner uses a tokenized URL
export CI_PUSH_REPO=`echo $CI_REPOSITORY_URL | perl -pe 's#.*@(.+?(\:\d+)?)/#git@\1:#'`
# runner runs on a detached HEAD, create a temporary local branch for editing
git checkout -b ci_processing
git config --global user.name "My Runner"
git config --global user.email "runner@gitlab.example.org"
git remote set-url --push origin "${CI_PUSH_REPO}"
# make your changes
touch test.txt
# push changes
# always return true so that the build does not fail if there are no changes
git push origin ci_processing:${CI_BUILD_REF_NAME} || true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment