mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-07-04 05:00:46 +00:00
Compare commits
8 Commits
59ea0b94e1
...
v20
Author | SHA1 | Date | |
---|---|---|---|
2b95cd179b | |||
9b7f098ced | |||
7154c020a1 | |||
a11d1ce303 | |||
53b41ec631 | |||
c8eef60b09 | |||
09fe857895 | |||
31dc4746e2 |
2
.github/workflows/review-app-cleanup.yml
vendored
2
.github/workflows/review-app-cleanup.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# destroy a review app
|
# destroy a review app
|
||||||
command: review-apps:destroy
|
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
|
# specify a name for the review app
|
||||||
review_app_name: nginx-buildpack-${{ github.event.pull_request.number }}
|
review_app_name: nginx-buildpack-${{ github.event.pull_request.number }}
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
@ -1,15 +1,28 @@
|
|||||||
#!/bin/sh -l
|
#!/bin/sh -l
|
||||||
if [ "$IS_REVIEW_APP" = "true" ]; then
|
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"
|
echo "-----> Purging repo cache"
|
||||||
ssh "$SSH_REMOTE" -- repo:purge-cache "$APP_NAME"
|
ssh "$SSH_REMOTE" -- repo:purge-cache "$APP_NAME"
|
||||||
|
|
||||||
echo "-----> Setting the test domain name"
|
echo "-----> Setting the test domain name"
|
||||||
ssh "$SSH_REMOTE" -- domains:set "$APP_NAME" "$APP_NAME.dokku.net"
|
ssh "$SSH_REMOTE" -- domains:set "$APP_NAME" "$APP_NAME.dokku.net"
|
||||||
|
|
||||||
echo "-----> Setting the buildpack to the current commit"
|
echo "-----> Ensure test includes vendored app-nginx.conf.sigil"
|
||||||
echo "https://github.com/${GITHUB_REPOSITORY}.git#$GITHUB_SHA" > .buildpacks
|
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 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"
|
git commit -qm "feat: specify $GITHUB_SHA as buildpack"
|
||||||
|
|
||||||
|
git rev-parse HEAD >ci-commit-override
|
||||||
fi
|
fi
|
Reference in New Issue
Block a user