From a0a0fda23e582fa8dd9bbd50c6c12e5bcfa526d2 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Tue, 8 Apr 2025 11:55:07 +0200 Subject: [PATCH 1/2] Don't follow symlinks while s3 sync --- .github/workflows/preview-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 42185b298..a72781c35 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -171,7 +171,7 @@ jobs: id: s3-upload if: ${{ !cancelled() && steps.docs-build.outputs.skip != 'true' && steps.deployment.outputs.result }} run: | - aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete + aws s3 sync --no-follow-symlinks .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete aws cloudfront create-invalidation \ --distribution-id EKT7LT5PM8RKS \ --paths "${PATH_PREFIX}" "${PATH_PREFIX}/*" From a25f753288fe3e7d22dff7a079dcad56600d0717 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Tue, 8 Apr 2025 11:58:09 +0200 Subject: [PATCH 2/2] Move opt to end --- .github/workflows/preview-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index a72781c35..6bca08845 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -171,7 +171,7 @@ jobs: id: s3-upload if: ${{ !cancelled() && steps.docs-build.outputs.skip != 'true' && steps.deployment.outputs.result }} run: | - aws s3 sync --no-follow-symlinks .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete + aws s3 sync .artifacts/docs/html "s3://elastic-docs-v3-website-preview${PATH_PREFIX}" --delete --no-follow-symlinks aws cloudfront create-invalidation \ --distribution-id EKT7LT5PM8RKS \ --paths "${PATH_PREFIX}" "${PATH_PREFIX}/*"