1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2025-07-03 12:40:47 +00:00

8 Commits

Author SHA1 Message Date
2b95cd179b Merge pull request #59 from dokku/test-conf
Ensure test runs against vendored app-nginx.conf.sigil and mime.types
2022-09-10 20:23:40 -04:00
9b7f098ced fix: add whitespace 2022-09-10 20:20:44 -04:00
7154c020a1 fix: use GITHUB_HEAD_REF instead 2022-09-10 20:14:49 -04:00
a11d1ce303 refactor: use ref name instead of sha 2022-09-10 20:11:49 -04:00
53b41ec631 fix: override commit being deployed 2022-09-10 19:58:50 -04:00
c8eef60b09 test: ensure test runs against vendored app-nginx.conf.sigil and mime.types 2022-09-10 18:56:55 -04:00
09fe857895 Merge pull request #58 from dokku/correct-remote-host
fix: use correct remote host
2022-09-10 18:29:17 -04:00
31dc4746e2 fix: use correct remote host 2022-09-10 18:25:08 -04:00
2 changed files with 19 additions and 6 deletions

View File

@ -17,7 +17,7 @@ jobs:
with:
# destroy a review app
command: review-apps:destroy
git_remote_url: 'ssh://dokku@dokku.me:22/nginx-buildpack'
git_remote_url: 'ssh://dokku@dokku.com/nginx-buildpack'
# specify a name for the review app
review_app_name: nginx-buildpack-${{ github.event.pull_request.number }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}

View File

@ -1,15 +1,28 @@
#!/bin/sh -l
if [ "$IS_REVIEW_APP" = "true" ]; then
git config --global user.name 'Dokku Bot'
git config --global user.email no-reply@dokku.com
echo "-----> Purging repo cache"
ssh "$SSH_REMOTE" -- repo:purge-cache "$APP_NAME"
echo "-----> Setting the test domain name"
ssh "$SSH_REMOTE" -- domains:set "$APP_NAME" "$APP_NAME.dokku.net"
echo "-----> Setting the buildpack to the current commit"
echo "https://github.com/${GITHUB_REPOSITORY}.git#$GITHUB_SHA" > .buildpacks
echo "-----> Ensure test includes vendored app-nginx.conf.sigil"
cp conf/app-nginx.conf.sigil app-nginx.conf.sigil
git add app-nginx.conf.sigil
git commit -qm "feat: specify custom app-nginx.conf.sigil"
echo "-----> Ensure test includes vendored mime.types"
cp conf/mime.types mime.types
git add mime.types
git commit -qm "feat: specify custom mime.types"
echo "-----> Setting the buildpack to the current ref $GITHUB_HEAD_REF"
echo "https://github.com/${GITHUB_REPOSITORY}.git#$GITHUB_HEAD_REF" > .buildpacks
git add .buildpacks
git config --global user.name 'Dokku Bot'
git config --global user.email no-reply@dokku.com
git commit -qm "feat: specify $GITHUB_SHA as buildpack"
fi
git rev-parse HEAD >ci-commit-override
fi