Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
COVID-19
models
Commits
6e5e72f9
Verified
Commit
6e5e72f9
authored
Jul 14, 2020
by
Laurent Heirendt
✈
Browse files
add merging of local tmp branch
parent
694b6ed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6e5e72f9
...
...
@@ -25,12 +25,14 @@ commit:
-
if
:
$CI_MERGE_REQUEST_ID
before_script
:
-
url_host=`git remote get-url origin | sed -e "s/https:\/\/gitlab-ci-token:.*@//g"`
-
git branch -d $CI_COMMIT_BRANCH
# delete existing branch locally
-
git checkout -b $CI_COMMIT_BRANCH origin/$CI_COMMIT_BRANCH
-
git checkout -b tmpBranch origin/$CI_COMMIT_BRANCH
-
git remote set-url origin "https://$GIT_ACCESS_USER:$GIT_ACCESS_TOKEN@${url_host}"
-
git config user.name $GIT_ACCESS_USER
-
git config user.email $GIT_ACCESS_EMAIL
script
:
-
git add --all
-
git commit -m "Update models"
-
git push origin $CI_COMMIT_BRANCH
\ No newline at end of file
-
git checkout $CI_COMMIT_BRANCH
-
git merge tmpBranch --ff
-
git push origin $CI_COMMIT_BRANCH
-
git branch -D tmpBranch
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment