Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
clpm
clpm
Commits
78f90dbc
Commit
78f90dbc
authored
Feb 22, 2021
by
Eric Timmons
Browse files
Fix ci to checkout tags correctly
parent
574453ba
Pipeline
#3168
passed with stages
in 29 minutes and 52 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
78f90dbc
...
...
@@ -102,7 +102,10 @@ debian-image:arm:
# This looks a little funky, but only one of
# $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME and $CI_COMMIT_BRANCH will ever be
# defined at once.
-
git checkout -B $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME $CI_COMMIT_BRANCH $CI_COMMIT_SHA
-
|
if [ -z "$CI_COMMIT_TAG" ]; then
git checkout -B $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME $CI_COMMIT_BRANCH $CI_COMMIT_SHA
fi
.git-repo-needed:windows:
variables
:
...
...
@@ -113,7 +116,12 @@ debian-image:arm:
# This looks a little funky, but only one of
# $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME and $CI_COMMIT_BRANCH will ever be
# defined at once.
-
git checkout -B $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME $CI_COMMIT_BRANCH $CI_COMMIT_SHA
-
|
if ($CI_COMMIT_TAG) {
git checkout $CI_COMMIT_TAG
} else {
git checkout -B $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME $CI_COMMIT_BRANCH $CI_COMMIT_SHA
}
-
git submodule init
-
git submodule update
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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