From c8eef60b096e98eeafab25b9c47cd72918123181 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 10 Sep 2022 18:56:55 -0400 Subject: [PATCH] test: ensure test runs against vendored app-nginx.conf.sigil and mime.types --- bin/ci-pre-deploy | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bin/ci-pre-deploy b/bin/ci-pre-deploy index 08b7600..03a04b7 100644 --- a/bin/ci-pre-deploy +++ b/bin/ci-pre-deploy @@ -1,15 +1,26 @@ #!/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 "-----> 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 commit" 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 -qm "feat: specify $GITHUB_SHA as buildpack" fi \ No newline at end of file