mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
s3: fix content-type response header for webp
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
15
.github/workflows/deploy.yml
vendored
15
.github/workflows/deploy.yml
vendored
@@ -102,7 +102,20 @@ jobs:
|
||||
name: Upload files to S3 bucket
|
||||
if: ${{ env.DOCS_S3_BUCKET != '' }}
|
||||
run: |
|
||||
aws --region ${{ env.DOCS_AWS_REGION }} s3 sync --acl public-read public s3://${{ env.DOCS_S3_BUCKET }}/ --delete
|
||||
aws --region ${{ env.DOCS_AWS_REGION }} s3 sync \
|
||||
--acl public-read \
|
||||
--delete \
|
||||
--exclude "*" \
|
||||
--include "*.webp" \
|
||||
--metadata-directive="REPLACE" \
|
||||
--no-guess-mime-type \
|
||||
--content-type="image/webp" \
|
||||
public s3://${{ env.DOCS_S3_BUCKET }}/
|
||||
aws --region ${{ env.DOCS_AWS_REGION }} s3 sync \
|
||||
--acl public-read \
|
||||
--delete \
|
||||
--exclude "*.webp" \
|
||||
public s3://${{ env.DOCS_S3_BUCKET }}/
|
||||
-
|
||||
name: Update S3 config
|
||||
if: ${{ env.DOCS_S3_BUCKET != '' && env.DOCS_S3_CONFIG != '' }}
|
||||
|
||||
Reference in New Issue
Block a user