File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,16 @@ file shows how you can clone a repo at build time:
46
46
#!/bin/bash
47
47
if [ ! -d "/home/coder/workspace/project" ]
48
48
then
49
+ ssh-keyscan -t rsa <your git provider endpoint> >> ~/.ssh/known_hosts
49
50
git clone git://company.com/project.git /home/coder/workspace/project
50
51
else
51
52
echo "Project has already been cloned."
52
53
fi
53
54
```
54
55
56
+ > Change the git provider endpoint in the ``` ssh-keyscan ``` command. e.g.,
57
+ > ``` github.com ``` ``` bitbucket.org ``` ``` gitlab.com ```
58
+
55
59
Note that the instructions provided include ` if-else ` logic on whether the
56
60
instructions should be re-run (and when) or if Coder should run the instructions
57
61
only once. We strongly recommend including this logic at all times to minimize
You can’t perform that action at this time.
0 commit comments