Skip to content

Commit

Permalink
Use fork of s3deploy with dotfile whitelist
Browse files Browse the repository at this point in the history
This has been [submitted as a pull
request](bep/s3deploy#58) upstream, but until
it gets accepted I'll use my fork for the DLTJ site deployment.
  • Loading branch information
dltj committed Jul 16, 2021
1 parent da4573e commit 6d72f97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .s3deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DotAllowList:
- .well-known
6 changes: 2 additions & 4 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ version: 0.2
# key: "value"
env:
variables:
s3deploy_version: 2.3.5
s3deploy_version: 2.3.6-dltj

phases:
install:
runtime-versions:
ruby: 2.6
commands:
- bundle install --path vendor/bundle
- curl -s -S -L -f https://github.com/bep/s3deploy/releases/download/v${s3deploy_version}/s3deploy_${s3deploy_version}_Linux-64bit.tar.gz -o vendor/s3deploy.tar.gz || rm -f vendor/s3deploy.tar.gz
- curl -s -S -L -f https://github.com/dltj/s3deploy/releases/download/v${s3deploy_version}/s3deploy_${s3deploy_version}_Linux-64bit.tar.gz -o vendor/s3deploy.tar.gz || rm -f vendor/s3deploy.tar.gz
- tar -xf vendor/s3deploy.tar.gz --directory vendor
pre_build:
commands:
Expand All @@ -33,8 +33,6 @@ phases:
# - aws s3 sync --delete --size-only --cache-control max-age=7201 _site/ "s3://${BUCKET_NAME}"
- vendor/s3deploy -bucket "${BUCKET_NAME}" -region us-east-1 -source _site/
- aws s3api put-bucket-website --bucket "${BUCKET_NAME}" --website-configuration file://s3-website-config.json
- ls -lR _site/assets
- find . -name "JekyllWebmentionIO.js" -print
#artifacts:
#files:
# - location
Expand Down

0 comments on commit 6d72f97

Please # to comment.