2022-09-10 21:38:10 +00:00
|
|
|
#!/bin/sh -l
|
|
|
|
if [ "$IS_REVIEW_APP" = "true" ]; then
|
2022-09-10 22:02:11 +00:00
|
|
|
echo "-----> Purging repo cache"
|
2022-09-10 21:53:28 +00:00
|
|
|
ssh "$SSH_REMOTE" -- repo:purge-cache "$APP_NAME"
|
|
|
|
|
2022-09-10 22:02:11 +00:00
|
|
|
echo "-----> Setting the buildpack to the current commit"
|
2022-09-10 21:38:10 +00:00
|
|
|
echo "https://github.com/${GITHUB_REPOSITORY}.git#$GITHUB_SHA" > .buildpacks
|
|
|
|
git add .buildpacks
|
|
|
|
git config --global user.name 'Dokku Bot'
|
|
|
|
git config --global user.email no-reply@dokku.com
|
2022-09-10 21:58:38 +00:00
|
|
|
git commit -qm "feat: specify $GITHUB_SHA as buildpack"
|
2022-09-10 21:38:10 +00:00
|
|
|
fi
|