fix: set current buildpack as the buildpack to use

This commit is contained in:
Jose Diaz-Gonzalez 2022-09-10 17:38:10 -04:00
parent 1769636cc8
commit 648d73fda6
2 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,8 @@ jobs:
# create a review app
command: review-apps:create
git_remote_url: 'ssh://dokku@dokku.com/nginx-buildpack'
# specify `--force` as a flag for git pushes
git_push_flags: '--force'
# specify a name for the review app
review_app_name: nginx-buildpack-${{ github.event.pull_request.number }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

8
bin/ci-pre-deploy Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh -l
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