File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,11 @@ jobs:
188
188
# command: |
189
189
# set -e
190
190
# 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
192
192
193
193
deploy-production :
194
194
executor : node_executor
195
195
parameters :
196
- bucket_dir :
197
- default : " dorian"
198
- description : The directory in the bucket to deploy to.
199
- type : string
200
196
bucket_name :
201
197
description : The name of the s3 bucket where static assets are stored.
202
198
type : string
@@ -212,12 +208,11 @@ jobs:
212
208
name : Deploy Production Site to S3
213
209
command : |
214
210
AWS_S3_BUCKET=<< parameters.bucket_name >>
215
- BUCKET_DIRECTORY=<< parameters.bucket_dir >>
216
211
BUILD_DIRECTORY=<< parameters.build_dir >>
217
212
218
213
set -e
219
214
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
221
216
- notify_error :
222
217
message : " Production deployment job failed for branch ${CIRCLE_BRANCH}"
223
218
@@ -302,8 +297,7 @@ workflows:
302
297
web-ui-npm,
303
298
web-ui-datadog,
304
299
]
305
- bucket_dir : " dorian"
306
- bucket_name : " circleci-docs-platform-assets/docs"
300
+ bucket_name : " circleci-docs-platform-assets/docs-preview"
307
301
build_dir : " build"
308
302
cleanup_preview :
309
303
when : pipeline.parameters.cleanup_preview_branch != ""
You can’t perform that action at this time.
0 commit comments