From f353ef00b55751a24c901ecb7f30fc1102971e95 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Mon, 11 Apr 2016 12:55:11 +0200 Subject: [PATCH 1/2] Accept only bug reports and feature requests --- .github/ISSUE_TEMPLATE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 22ef8917e..81ae32b24 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,5 +1,7 @@ **DELETE THIS TEMPLATE BEFORE SUBMITTING** +_Only use Github issues to report bugs or feature requests, see https://www.packer.io/community/_ + If you are planning to open a pull-request just open the pull-request instead of making an issue first. FOR FEATURES: From 1eb9419665ee0f281b4e3be4a0f5844e7685cc47 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 12 Apr 2016 20:12:15 +0100 Subject: [PATCH 2/2] Update website push script to fix metadata --- website/packer.json | 6 ++++-- website/scripts/deploy.sh | 20 +++++++++++++++++--- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/website/packer.json b/website/packer.json index b230c7e51..5732112c3 100644 --- a/website/packer.json +++ b/website/packer.json @@ -27,8 +27,10 @@ "FASTLY_API_KEY={{ user `fastly_api_key` }}" ], "inline": [ - "apt-get update", - "apt-get install -y build-essential curl git libffi-dev s3cmd wget", + "apt-get -qq update", + "apt-get -yqq install build-essential curl git libffi-dev wget", + "apt-get -yqq install python-pip", + "pip install s3cmd", "cd /app", "bundle check || bundle install --jobs 7", diff --git a/website/scripts/deploy.sh b/website/scripts/deploy.sh index 6916018c1..fb97db39b 100755 --- a/website/scripts/deploy.sh +++ b/website/scripts/deploy.sh @@ -64,15 +64,29 @@ if [ -z "$NO_UPLOAD" ]; then # The s3cmd guessed mime type for text files is often wrong. This is # problematic for some assets, so force their mime types to be correct. + echo "Overriding javascript mime-types..." s3cmd \ --mime-type="application/javascript" \ - modify "s3://hc-sites/$PROJECT/latest/**/*.js" + --exclude "*" \ + --include "*.js" \ + --recursive \ + modify "s3://hc-sites/$PROJECT/latest/" + + echo "Overriding css mime-types..." s3cmd \ --mime-type="text/css" \ - modify "s3://hc-sites/$PROJECT/latest/**/*.css" + --exclude "*" \ + --include "*.css" \ + --recursive \ + modify "s3://hc-sites/$PROJECT/latest/" + + echo "Overriding svg mime-types..." s3cmd \ --mime-type="image/svg+xml" \ - modify "s3://hc-sites/$PROJECT/latest/**/*.svg" + --exclude "*" \ + --include "*.svg" \ + --recursive \ + modify "s3://hc-sites/$PROJECT/latest/" fi # Perform a soft-purge of the surrogate key.