1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-25 02:23:05 +00:00
buildpack-nginx/bin/ci-pre-deploy

15 lines
577 B
Plaintext
Raw Normal View History

#!/bin/sh -l
if [ "$IS_REVIEW_APP" = "true" ]; then
2022-09-10 22:02:11 +00:00
echo "-----> Purging repo cache"
ssh "$SSH_REMOTE" -- repo:purge-cache "$APP_NAME"
echo "-----> Setting the test domain name"
ssh "$SSH_REMOTE" -- repo:purge-cache "$APP_NAME" "$APP_NAME.dokku.net"
2022-09-10 22:02:11 +00:00
echo "-----> Setting the buildpack to the current commit"
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"
fi