diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a412c28..953cc78 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }} diff --git a/bin/ci-pre-deploy b/bin/ci-pre-deploy new file mode 100644 index 0000000..52f35ee --- /dev/null +++ b/bin/ci-pre-deploy @@ -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 \ No newline at end of file