This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 4d37c857 fix build script
4d37c857 is described below
commit 4d37c857cc4680674b982bc756e0a59dcc8108c7
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Fri May 10 15:43:17 2024 -0400
fix build script
---
karavan-app/src/main/resources/snippets/docker-build.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/karavan-app/src/main/resources/snippets/docker-build.sh
b/karavan-app/src/main/resources/snippets/docker-build.sh
index 6f1b96f1..c3b9ef25 100644
--- a/karavan-app/src/main/resources/snippets/docker-build.sh
+++ b/karavan-app/src/main/resources/snippets/docker-build.sh
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
git config --global credential.helper 'cache --timeout=3600'
-git_credential_fill()
+git_credential_fill() {
echo url=$GIT_REPOSITORY
echo username=$GIT_USERNAME
echo password=$GIT_PASSWORD
-
+}
git_credential_fill | git credential approve
git clone --depth 1 --branch $GIT_BRANCH $GIT_REPOSITORY $CODE_DIR