Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kypo-ansible-runner
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUNI-KYPO-CRP
backend-python
kypo-ansible-runner
Commits
b90d272c
Commit
b90d272c
authored
1 year ago
by
Radovan Krebs
Browse files
Options
Downloads
Patches
Plain Diff
Configure usage of git credential file
parent
b62c3424
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entrypoint.sh
+3
-1
3 additions, 1 deletion
entrypoint.sh
with
3 additions
and
1 deletion
entrypoint.sh
+
3
−
1
View file @
b90d272c
...
@@ -47,6 +47,8 @@ if [ $? != 0 ]; then
...
@@ -47,6 +47,8 @@ if [ $? != 0 ]; then
fi
fi
PREPARE_ANSWERS_PY
=
$(
realpath
"manage_answers.py"
)
PREPARE_ANSWERS_PY
=
$(
realpath
"manage_answers.py"
)
git config
--global
credential.helper
'store --file=/app/.git-credentials'
# Check if git repo is reachable.
# Check if git repo is reachable.
git ls-remote
$REPO_URL
-q
git ls-remote
$REPO_URL
-q
if
[
$?
!=
0
]
;
then
if
[
$?
!=
0
]
;
then
...
@@ -54,7 +56,7 @@ if [ $? != 0 ]; then
...
@@ -54,7 +56,7 @@ if [ $? != 0 ]; then
exit
1
exit
1
fi
fi
git clone
$REPO_URL
ansible_repo
||
exit
1
git clone
$REPO_URL
ansible_repo
>
/dev/null 2>&1
||
exit
1
cd
ansible_repo
||
exit
1
cd
ansible_repo
||
exit
1
if
[
$REVISION
]
;
then
if
[
$REVISION
]
;
then
git checkout
$REVISION
||
exit
1
git checkout
$REVISION
||
exit
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment