fix(ci): update submodule script
This commit is contained in:
committed by
Stuart Taylor
parent
25a6f0441f
commit
e9e32e06e2
17
tools/ci-scripts/trigger-build.sh
Normal file
17
tools/ci-scripts/trigger-build.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
pushd "$TRAVIS_BUILD_DIR"
|
||||
|
||||
if [ -n "$DOCKER_PUSH_API_TOKEN" ]
|
||||
then
|
||||
git clone https://github.com/"$DOCKER_PUSH_REPO".git docker-push-repo
|
||||
|
||||
cd docker-push-repo/freecodecamp
|
||||
git submodule update --init --remote --recursive
|
||||
git submodule status
|
||||
cd ../
|
||||
git add freecodecamp
|
||||
git -c user.name="$DOCKER_PUSH_USER" -c user.email='travis' \
|
||||
commit -m 'chore(ci): Travis CI - bump submodule'
|
||||
git push https://"$DOCKER_PUSH_USER":"$DOCKER_PUSH_API_TOKEN"@github.com/"$DOCKER_PUSH_REPO".git master
|
||||
fi
|
||||
popd
|
Reference in New Issue
Block a user