Skip to content

Commit f087733

Browse files
authored
Move the deploy directory to match the kong redirect and add public read permissions when syncing files (#205)
1 parent 3f72dad commit f087733

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.circleci/config.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,11 @@ jobs:
188188
# command: |
189189
# set -e
190190
# echo "[INFO] Testing deploy to S3 bucket..."
191-
# aws s3 sync build "s3://circleci-docs-platform-assets/docs/dorian/"
191+
# aws s3 sync build "s3://circleci-docs-platform-assets/docs-preview" --acl public-read
192192

193193
deploy-production:
194194
executor: node_executor
195195
parameters:
196-
bucket_dir:
197-
default: "dorian"
198-
description: The directory in the bucket to deploy to.
199-
type: string
200196
bucket_name:
201197
description: The name of the s3 bucket where static assets are stored.
202198
type: string
@@ -212,12 +208,11 @@ jobs:
212208
name: Deploy Production Site to S3
213209
command: |
214210
AWS_S3_BUCKET=<< parameters.bucket_name >>
215-
BUCKET_DIRECTORY=<< parameters.bucket_dir >>
216211
BUILD_DIRECTORY=<< parameters.build_dir >>
217212
218213
set -e
219214
echo "[INFO] Deploying production site..."
220-
aws s3 sync "$BUILD_DIRECTORY" "s3://$AWS_S3_BUCKET/$BUCKET_DIRECTORY/" --acl public-read
215+
aws s3 sync "$BUILD_DIRECTORY" "s3://$AWS_S3_BUCKET/" --acl public-read
221216
- notify_error:
222217
message: "Production deployment job failed for branch ${CIRCLE_BRANCH}"
223218

@@ -302,8 +297,7 @@ workflows:
302297
web-ui-npm,
303298
web-ui-datadog,
304299
]
305-
bucket_dir: "dorian"
306-
bucket_name: "circleci-docs-platform-assets/docs"
300+
bucket_name: "circleci-docs-platform-assets/docs-preview"
307301
build_dir: "build"
308302
cleanup_preview:
309303
when: pipeline.parameters.cleanup_preview_branch != ""

0 commit comments

Comments
 (0)