buildpack-nginx/bin/ci-pre-deploy

9 lines
316 B
Bash

#!/bin/sh -l
ls -lah
if [ "$IS_REVIEW_APP" = "true" ]; then
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
git commit -m "feat: specify $GITHUB_SHA as buildpack"
fi