Add 'init/entrypoint.sh'
This commit is contained in:
parent
fe30c811ca
commit
4980ac6405
13
init/entrypoint.sh
Normal file
13
init/entrypoint.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Clone git-repo
|
||||
git init
|
||||
git config core.sparsecheckout true
|
||||
echo $SPARSE_CHECKOUT >> .git/info/sparse-checkout
|
||||
git remote add -f origin $REMOTE_REPO
|
||||
git pull origin $REMOTE_BRANCH
|
||||
|
||||
mkdir -p /app/$COMPONENT/scripts
|
||||
mv ./components/*/**/* /app/$COMPONENT/scripts
|
||||
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user